chore: remove some allow attributes for fixed clippy bugs (#1944)

This commit is contained in:
Josh McKinney
2025-06-25 22:29:56 -07:00
committed by GitHub
parent 3f48bde3c6
commit d6647db744
2 changed files with 0 additions and 8 deletions

View File

@@ -77,20 +77,14 @@ impl Data {
[&self.name, &self.address, &self.email]
}
// https://github.com/rust-lang/rust/issues/139338
#[allow(clippy::missing_const_for_fn)]
fn name(&self) -> &str {
&self.name
}
// https://github.com/rust-lang/rust/issues/139338
#[allow(clippy::missing_const_for_fn)]
fn address(&self) -> &str {
&self.address
}
// https://github.com/rust-lang/rust/issues/139338
#[allow(clippy::missing_const_for_fn)]
fn email(&self) -> &str {
&self.email
}

View File

@@ -104,8 +104,6 @@ impl Buffer {
}
/// Returns the content of the buffer as a slice
// https://github.com/rust-lang/rust/issues/139338
#[allow(clippy::missing_const_for_fn)]
pub fn content(&self) -> &[Cell] {
&self.content
}