forgot to fix these ones too
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
3bc2af7d26
commit
7fbbdf83ab
3 changed files with 6 additions and 6 deletions
|
@ -1800,7 +1800,7 @@ mod tests {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
add_port_to_hostname("example.com"),
|
add_port_to_hostname("example.com"),
|
||||||
FedDest::Named(String::from("example.com"), String::from(":8448"))
|
FedDest::Named(String::from("example.com"), String::from(":8448"))
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -1808,6 +1808,6 @@ mod tests {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
add_port_to_hostname("example.com:1337"),
|
add_port_to_hostname("example.com:1337"),
|
||||||
FedDest::Named(String::from("example.com"), String::from(":1337"))
|
FedDest::Named(String::from("example.com"), String::from(":1337"))
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,7 +202,7 @@ impl KvTree for SqliteTable {
|
||||||
guard.execute("BEGIN", [])?;
|
guard.execute("BEGIN", [])?;
|
||||||
for key in iter {
|
for key in iter {
|
||||||
let old = self.get_with_guard(&guard, &key)?;
|
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)?;
|
self.insert_with_guard(&guard, &key, &new)?;
|
||||||
}
|
}
|
||||||
guard.execute("COMMIT", [])?;
|
guard.execute("COMMIT", [])?;
|
||||||
|
@ -285,7 +285,7 @@ impl KvTree for SqliteTable {
|
||||||
|
|
||||||
let old = self.get_with_guard(&guard, key)?;
|
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)?;
|
self.insert_with_guard(&guard, key, &new)?;
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ impl Service {
|
||||||
#[allow(clippy::unnecessary_operation)] // error[E0658]: attributes on expressions are experimental
|
#[allow(clippy::unnecessary_operation)] // error[E0658]: attributes on expressions are experimental
|
||||||
#[cfg(feature = "sha256_media")]
|
#[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
|
#[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
|
#[allow(clippy::unnecessary_operation)] // error[E0658]: attributes on expressions are experimental
|
||||||
#[cfg(feature = "sha256_media")]
|
#[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
|
#[allow(clippy::unnecessary_operation)] // error[E0658]: attributes on expressions are experimental
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue