From 499f4994a6a8507dcca20ed820c851be9a2343c1 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 16 Sep 2024 18:00:28 +0200 Subject: fix all clippy things --- server/src/data/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'server/src/data/mod.rs') diff --git a/server/src/data/mod.rs b/server/src/data/mod.rs index 246f695e..91b32a42 100644 --- a/server/src/data/mod.rs +++ b/server/src/data/mod.rs @@ -152,14 +152,12 @@ impl DataIndex { &self .read_recipes( map_in - .recipes - .as_ref() - .map(|a| a.as_str()) + .recipes.as_deref() .unwrap_or("default"), ) .await?, )?; - Ok(build_data(&self.maps, map.to_string(), map_in, recipes_in)?) + build_data(&self.maps, map.to_string(), map_in, recipes_in) } } -- cgit v1.2.3-70-g09d2