settings: log_text before the test module (clippy)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
This commit is contained in:
Claude committed 2026-10-04 23:18:32 +00:00
1 parent d5e9e472e5
commit 0167b462d6
1 file changed
+14 -14
+14 -14
View File
@@ -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(),
}
}