From 36a5c232b1f5d86bf97e29af987862732556ee07 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sat, 4 Jan 2025 02:22:18 +0100 Subject: Reformat --- Cargo.toml | 3 +++ src/file_handler/file_strategies/gemini.rs | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) 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?" ); } -- cgit