From 6f6209ee7c9df4abf56d8a29583892dd8f3402ee Mon Sep 17 00:00:00 2001 From: aria Date: Fri, 11 Jul 2025 22:27:29 +1000 Subject: [PATCH 1/2] refactor: cargo clippy -- -D warnings --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a32c53a..3ec9c3e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,7 +67,7 @@ fn main() -> Result<()> { .map(|x| { format!( "{} {}", - extract_date_time(&x.to_string()).first().unwrap(), + extract_date_time(x).first().unwrap(), extract_message(x) ) }) From a0d030d26ecd5233cae79de90591a9d52ff9cfbe Mon Sep 17 00:00:00 2001 From: aria Date: Fri, 11 Jul 2025 22:27:56 +1000 Subject: [PATCH 2/2] ci(rust): continue testing on fmt or clippy error --- .forgejo/workflows/rust.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/rust.yml b/.forgejo/workflows/rust.yml index abe8d78..788c0d0 100644 --- a/.forgejo/workflows/rust.yml +++ b/.forgejo/workflows/rust.yml @@ -11,6 +11,8 @@ jobs: - uses: actions/checkout@v4 - run: rustup component add rustfmt clippy - run: cargo fmt -- --check + continue-on-error: true - run: cargo clippy -- -D warnings + continue-on-error: true - run: cargo check - - run: cargo test \ No newline at end of file + - run: cargo test