From 9de6c03dfbaa08890b1ec8322a97b7097d4a9d37 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 27 Oct 2022 21:22:47 -0500 Subject: use variables directly in format strings thanks clippy we love you --- azalea-core/src/difficulty.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-core/src/difficulty.rs') diff --git a/azalea-core/src/difficulty.rs b/azalea-core/src/difficulty.rs index 5cc2f9fa..9d504307 100755 --- a/azalea-core/src/difficulty.rs +++ b/azalea-core/src/difficulty.rs @@ -20,7 +20,7 @@ pub enum Err { impl Debug for Err { fn fmt(&self, f: &mut Formatter) -> Result<(), Error> { match self { - Err::InvalidDifficulty(s) => write!(f, "Invalid difficulty: {}", s), + Err::InvalidDifficulty(s) => write!(f, "Invalid difficulty: {s}"), } } } @@ -52,7 +52,7 @@ impl Difficulty { 2 => Difficulty::NORMAL, 3 => Difficulty::HARD, // this shouldn't be possible because of the modulo, so panicking is fine - _ => panic!("Unknown difficulty id: {}", id), + _ => panic!("Unknown difficulty id: {id}"), } } -- cgit v1.2.3