Skip to content

Commit fb1eaf7

Browse files
committed
fmt
1 parent 7d3f7ac commit fb1eaf7

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

RustApp/.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[env]
2-
RUST_LOG = "warn,android_mic=info"
2+
RUST_LOG = "error,android_mic=info"
33
ANDROID_MIC_COMMIT = "undefined"
44
# ANDROID_MIC_FORMAT = "flatpak"
55
# RUST_LOG = "info"

RustApp/src/audio/denoise_rnnoise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pub fn denoise_f32_stream(data: &[Vec<f32>]) -> anyhow::Result<Vec<Vec<f32>>> {
2828
// Convert f32 to i16 range
2929
let data_i16: Vec<Vec<f32>> = data
3030
.iter()
31-
.map(|channel| channel.iter().map(|&x| (x * i16::MAX as f32)).collect())
31+
.map(|channel| channel.iter().map(|&x| x * i16::MAX as f32).collect())
3232
.collect();
3333

3434
// Append new data into the cache

RustApp/src/ui/view.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,10 @@ pub fn settings_window(app: &AppState) -> Element<'_, ConfigMsg> {
424424
)
425425
})),
426426
)
427-
.push(button::text(fl!("reset_denoise_settings")).on_press(ConfigMsg::ResetDenoiseSettings))
427+
.push(
428+
button::text(fl!("reset_denoise_settings"))
429+
.on_press(ConfigMsg::ResetDenoiseSettings),
430+
)
428431
.push(
429432
settings::section()
430433
.title(fl!("title_app"))
@@ -460,10 +463,9 @@ pub fn settings_window(app: &AppState) -> Element<'_, ConfigMsg> {
460463
ConfigMsg::Theme,
461464
)),
462465
)
463-
.add(
464-
widget::settings::item::builder(fl!("about"))
465-
.control(button::text(fl!("about_open")).on_press(ConfigMsg::ToggleAboutWindow)),
466-
),
466+
.add(widget::settings::item::builder(fl!("about")).control(
467+
button::text(fl!("about_open")).on_press(ConfigMsg::ToggleAboutWindow),
468+
)),
467469
),
468470
)
469471
.into()

0 commit comments

Comments
 (0)