From: Ruben Beltran del Rio Date: Sat, 4 Jan 2025 01:22:18 +0000 (+0100) Subject: Reformat X-Git-Tag: 1.4.0~6 X-Git-Url: https://git.r.bdr.sh/rbdr/page/commitdiff_plain/36a5c232b1f5d86bf97e29af987862732556ee07?ds=sidebyside;hp=8766e4412b95cfa0288683748cc20aba81a64d08 Reformat --- diff --git a/Cargo.toml b/Cargo.toml index 31709bc..5ce0102 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,3 +28,6 @@ assets = [ ["target/release/page", "/usr/bin/page", "755" ], ["man/page.1", "/usr/share/man/man1/page.1", "644" ], ] + +[lints.clippy] +pedantic = "warn" diff --git a/src/file_handler/file_strategies/gemini.rs b/src/file_handler/file_strategies/gemini.rs index df35d64..6cfb94d 100644 --- a/src/file_handler/file_strategies/gemini.rs +++ b/src/file_handler/file_strategies/gemini.rs @@ -154,9 +154,7 @@ mod tests { #[test] fn extracts_description() { assert_eq!( - Strategy - ::get_description("--- description: What is this?") - .trim(), + Strategy::get_description("--- description: What is this?").trim(), "What is this?" ); }