cleanup some expects (#2754)

This commit is contained in:
extrawurst 2025-10-28 22:40:44 +01:00 committed by GitHub
parent eb48b3788f
commit 7c7698d5a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 16 deletions

View file

@ -40,10 +40,6 @@ impl KeyConfig {
Ok(Self { keys, symbols })
}
#[expect(
clippy::missing_const_for_fn,
reason = "as of 1.86.0 clippy wants this to be const even though that breaks"
)]
fn get_key_symbol(&self, k: KeyCode) -> &str {
match k {
KeyCode::Enter => &self.symbols.enter,
@ -110,10 +106,6 @@ impl KeyConfig {
}
}
#[expect(
clippy::missing_const_for_fn,
reason = "as of 1.86.0 clippy wants this to be const even though that breaks"
)]
fn get_modifier_hint(&self, modifier: KeyModifiers) -> &str {
match modifier {
KeyModifiers::CONTROL => &self.symbols.control,

View file

@ -41,10 +41,6 @@ struct SyntaxFileBlame {
}
impl SyntaxFileBlame {
#[expect(
clippy::missing_const_for_fn,
reason = "as of 1.86.0 clippy wants this to be const even though that breaks"
)]
fn path(&self) -> &str {
&self.file_blame.path
}

View file

@ -168,10 +168,6 @@ impl SyntaxText {
}
///
#[expect(
clippy::missing_const_for_fn,
reason = "as of 1.86.0 clippy wants this to be const even though that breaks"
)]
pub fn path(&self) -> &Path {
&self.path
}