mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
cleanup some expects (#2754)
This commit is contained in:
parent
eb48b3788f
commit
7c7698d5a2
3 changed files with 0 additions and 16 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue