mirror of
https://github.com/sharkdp/bat
synced 2026-08-01 18:31:46 +00:00
Fix clippy::needless_lifetimes warnings
This commit is contained in:
+1
-1
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user