Skip to content

Commit 80dfff4

Browse files
style: rustfmt the global-level helper and its test
Signed-off-by: Artem Trofymenko <readycsvapp@gmail.com> Signed-off-by: Artem Trofymenko <99894081+artemtrofymenko@users.noreply.github.com>
1 parent 46b6e7d commit 80dfff4

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • desktop/src-tauri/src/managed_agents/runtime

desktop/src-tauri/src/managed_agents/runtime/metadata.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ const GLOBAL_LEVELS: [&str; 12] = [
119119
fn sets_global_level(filter: &str) -> bool {
120120
filter.split(',').any(|directive| {
121121
let directive = directive.trim();
122-
GLOBAL_LEVELS.iter().any(|level| directive.eq_ignore_ascii_case(level))
122+
GLOBAL_LEVELS
123+
.iter()
124+
.any(|level| directive.eq_ignore_ascii_case(level))
123125
})
124126
}
125127

@@ -317,6 +319,9 @@ mod tests {
317319
"buzz_acp=debug"
318320
);
319321
assert_eq!(child_rust_log_filter_from(None), "buzz_acp=info");
320-
assert_eq!(child_rust_log_filter_from(Some(" ".to_string())), "buzz_acp=info");
322+
assert_eq!(
323+
child_rust_log_filter_from(Some(" ".to_string())),
324+
"buzz_acp=info"
325+
);
321326
}
322327
}

0 commit comments

Comments
 (0)