Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Oct 30, 2022
1 parent e72f371 commit 82ce8e9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ui/image_backends/iterm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ impl ITermBackend {
}
}

impl Default for ITermBackend {
fn default() -> Self {
Self::new()
}
}

impl super::ImageBackend for ITermBackend {
fn add_image(
&self,
Expand Down
6 changes: 6 additions & 0 deletions src/ui/image_backends/kitty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ impl KittyBackend {
}
}

impl Default for KittyBackend {
fn default() -> Self {
Self::new()
}
}

impl super::ImageBackend for KittyBackend {
fn add_image(
&self,
Expand Down
6 changes: 6 additions & 0 deletions src/ui/image_backends/sixel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ impl SixelBackend {
}
}

impl Default for SixelBackend {
fn default() -> Self {
Self::new()
}
}

impl super::ImageBackend for SixelBackend {
#[allow(clippy::map_entry)]
fn add_image(&self, lines: Vec<String>, image: &DynamicImage, colors: usize) -> Result<String> {
Expand Down

0 comments on commit 82ce8e9

Please sign in to comment.