diff --git a/src/api/server_server.rs b/src/api/server_server.rs index 5d7d2a59..919f30c4 100644 --- a/src/api/server_server.rs +++ b/src/api/server_server.rs @@ -1800,7 +1800,7 @@ mod tests { assert_eq!( add_port_to_hostname("example.com"), FedDest::Named(String::from("example.com"), String::from(":8448")) - ) + ); } #[test] @@ -1808,6 +1808,6 @@ mod tests { assert_eq!( add_port_to_hostname("example.com:1337"), FedDest::Named(String::from("example.com"), String::from(":1337")) - ) + ); } } diff --git a/src/database/abstraction/sqlite.rs b/src/database/abstraction/sqlite.rs index 7f9e7e7b..754863ef 100644 --- a/src/database/abstraction/sqlite.rs +++ b/src/database/abstraction/sqlite.rs @@ -202,7 +202,7 @@ impl KvTree for SqliteTable { guard.execute("BEGIN", [])?; for key in iter { let old = self.get_with_guard(&guard, &key)?; - let new = crate::utils::increment(old.as_deref()).expect("utils::increment always returns Some"); + let new = crate::utils::increment(old.as_deref()); self.insert_with_guard(&guard, &key, &new)?; } guard.execute("COMMIT", [])?; @@ -285,7 +285,7 @@ impl KvTree for SqliteTable { let old = self.get_with_guard(&guard, key)?; - let new = crate::utils::increment(old.as_deref()).expect("utils::increment always returns Some"); + let new = crate::utils::increment(old.as_deref()); self.insert_with_guard(&guard, key, &new)?; diff --git a/src/service/media/mod.rs b/src/service/media/mod.rs index 8762bd41..363e6039 100644 --- a/src/service/media/mod.rs +++ b/src/service/media/mod.rs @@ -128,7 +128,7 @@ impl Service { #[allow(clippy::unnecessary_operation)] // error[E0658]: attributes on expressions are experimental #[cfg(feature = "sha256_media")] { - path = services().globals.get_media_file_new(&key) + path = services().globals.get_media_file_new(&key); }; #[allow(clippy::unnecessary_operation)] // error[E0658]: attributes on expressions are experimental @@ -231,7 +231,7 @@ impl Service { #[allow(clippy::unnecessary_operation)] // error[E0658]: attributes on expressions are experimental #[cfg(feature = "sha256_media")] { - path = services().globals.get_media_file_new(&key) + path = services().globals.get_media_file_new(&key); }; #[allow(clippy::unnecessary_operation)] // error[E0658]: attributes on expressions are experimental