1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 19:32:25 +01:00

Fix clippy::needless_lifetimes warnings

This commit is contained in:
einfachIrgendwer0815
2025-02-02 14:20:05 +01:00
parent bc24ce9ad4
commit 52252b15d6
6 changed files with 8 additions and 8 deletions

View File

@@ -75,7 +75,7 @@ pub(crate) enum InputKind<'a> {
CustomReader(Box<dyn Read + 'a>),
}
impl<'a> InputKind<'a> {
impl InputKind<'_> {
pub fn description(&self) -> InputDescription {
match self {
InputKind::OrdinaryFile(ref path) => InputDescription::new(path.to_string_lossy()),