diff options
author | Vika <vika@fireburn.ru> | 2025-04-06 23:02:02 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2025-04-09 23:31:57 +0300 |
commit | bce64b96a17852c2b7093e2c21b6dc5ba39bdfee (patch) | |
tree | 1448ef46f523cbd4974489b1af8ff5fa969f0f40 | |
parent | 4d2470c0b00d23737d914b3ffcf47044a7b48ddb (diff) | |
download | kittybox-bce64b96a17852c2b7093e2c21b6dc5ba39bdfee.tar.zst |
Silence some Clippy warnings
Change-Id: I264c278552cd7096b50a6a8fbacb90f62fc6c14f
-rw-r--r-- | indieauth/src/scopes.rs | 1 | ||||
-rw-r--r-- | src/media/storage/file.rs | 1 | ||||
-rw-r--r-- | templates/src/mf2.rs | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/indieauth/src/scopes.rs b/indieauth/src/scopes.rs index 02ee8dc..1157996 100644 --- a/indieauth/src/scopes.rs +++ b/indieauth/src/scopes.rs @@ -153,6 +153,7 @@ impl Serialize for Scopes { } } struct ScopeVisitor; +#[allow(clippy::needless_lifetimes, reason = "serde idiom")] impl<'de> Visitor<'de> for ScopeVisitor { type Value = Scopes; diff --git a/src/media/storage/file.rs b/src/media/storage/file.rs index e432945..4cd0ece 100644 --- a/src/media/storage/file.rs +++ b/src/media/storage/file.rs @@ -133,6 +133,7 @@ impl MediaStore for FileStore { } #[tracing::instrument(skip(self))] + #[allow(clippy::type_complexity)] async fn read_streaming( &self, domain: &str, diff --git a/templates/src/mf2.rs b/templates/src/mf2.rs index 787d3ed..aaac80f 100644 --- a/templates/src/mf2.rs +++ b/templates/src/mf2.rs @@ -1,3 +1,7 @@ +#![expect( + clippy::needless_lifetimes, + reason = "bug: Clippy doesn't realize the `markup` crate requires explicit lifetimes due to its idiosyncracies" +)] use ellipse::Ellipse; pub static POSTS_PER_PAGE: usize = 20; |