From 0167b462d619893cac4c39368cd5580cc8a7b43d Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 4 Oct 2026 23:18:32 +0000 Subject: [PATCH] settings: log_text before the test module (clippy) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN --- crates/voelin-ui/src/settings_pages.rs | 28 +++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/crates/voelin-ui/src/settings_pages.rs b/crates/voelin-ui/src/settings_pages.rs index a434908..8cef320 100644 --- a/crates/voelin-ui/src/settings_pages.rs +++ b/crates/voelin-ui/src/settings_pages.rs @@ -1365,6 +1365,20 @@ fn codec_of(i: i32) -> CodecChoice { } } +/// Where the logs go, for the Advanced page. +fn log_text() -> String { + match voelin_platform::logs::current() { + Some(path) => format!( + "This run logs to {} (the previous runs' next to it, the last as voelin.1.log). \ + VOELIN_LOG=voelin_core=debug,voelin_ui=debug logs more; warnings also go to the terminal.", + path.display() + ), + None => "Logs go to the terminal the app was started from (standard error); \ + RUST_LOG=voelin_core=debug,voelin_ui=debug shows more." + .into(), + } +} + #[cfg(test)] mod tests { use super::*; @@ -1428,17 +1442,3 @@ mod tests { assert_eq!(rule_text(&PermRule::default()), "nobody"); } } - -/// Where the logs go, for the Advanced page. -fn log_text() -> String { - match voelin_platform::logs::current() { - Some(path) => format!( - "This run logs to {} (the previous runs' next to it, the last as voelin.1.log). \ - VOELIN_LOG=voelin_core=debug,voelin_ui=debug logs more; warnings also go to the terminal.", - path.display() - ), - None => "Logs go to the terminal the app was started from (standard error); \ - RUST_LOG=voelin_core=debug,voelin_ui=debug shows more." - .into(), - } -}