Skip to content

Commit 453c474

Browse files
extrawurstcruessler
authored andcommitted
cleanup some expects (#2754)
1 parent 2f8aebb commit 453c474

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

src/keys/key_config.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ impl KeyConfig {
4040
Ok(Self { keys, symbols })
4141
}
4242

43-
#[expect(
44-
clippy::missing_const_for_fn,
45-
reason = "as of 1.86.0 clippy wants this to be const even though that breaks"
46-
)]
4743
fn get_key_symbol(&self, k: KeyCode) -> &str {
4844
match k {
4945
KeyCode::Enter => &self.symbols.enter,
@@ -110,10 +106,6 @@ impl KeyConfig {
110106
}
111107
}
112108

113-
#[expect(
114-
clippy::missing_const_for_fn,
115-
reason = "as of 1.86.0 clippy wants this to be const even though that breaks"
116-
)]
117109
fn get_modifier_hint(&self, modifier: KeyModifiers) -> &str {
118110
match modifier {
119111
KeyModifiers::CONTROL => &self.symbols.control,

src/popups/blame_file.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ struct SyntaxFileBlame {
4141
}
4242

4343
impl SyntaxFileBlame {
44-
#[expect(
45-
clippy::missing_const_for_fn,
46-
reason = "as of 1.86.0 clippy wants this to be const even though that breaks"
47-
)]
4844
fn path(&self) -> &str {
4945
&self.file_blame.path
5046
}

src/ui/syntax_text.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ impl SyntaxText {
168168
}
169169

170170
///
171-
#[expect(
172-
clippy::missing_const_for_fn,
173-
reason = "as of 1.86.0 clippy wants this to be const even though that breaks"
174-
)]
175171
pub fn path(&self) -> &Path {
176172
&self.path
177173
}

0 commit comments

Comments
 (0)