Skip to content

Commit

Permalink
fix: remove elidable lifetimes from FileSize impls
Browse files Browse the repository at this point in the history
  • Loading branch information
garryod committed Dec 31, 2024
1 parent b32b4d2 commit 4dec4bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl Screen {
#[derive(Debug, Clone)]
pub struct FileName<'a>(Paragraph<'a>);

impl<'a> FileName<'a> {
impl FileName<'_> {
pub fn new(file_name: impl AsRef<str>) -> Self {
Self(
Paragraph::new(file_name.as_ref().to_string())
Expand All @@ -73,7 +73,7 @@ impl<'a> FileName<'a> {
#[derive(Debug, Clone)]
pub struct FileSize<'a>(Paragraph<'a>);

impl<'a> FileSize<'a> {
impl FileSize<'_> {
pub fn new(file_size: impl ToF64 + Unsigned) -> Self {
Self(
Paragraph::new(format_size(file_size, BINARY))
Expand Down

0 comments on commit 4dec4bb

Please sign in to comment.