chore: remove some allow attributes for fixed clippy bugs (#1944)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user