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
3 changed files with 0 additions and 16 deletions
-8
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,
-4
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
}
-4
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
}