Skip to content

Commit

Permalink
fix: clippy errors
Browse files Browse the repository at this point in the history
Signed-off-by: WoodenMaiden <yann.pomie@laposte.net>
  • Loading branch information
WoodenMaiden committed Oct 30, 2023
1 parent b7f0c70 commit 5324392
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions initramfs/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ mod test {
use super::{FileHandler, Image};
use anyhow::Ok;
use std::env;
use std::fs::OpenOptions;
use std::io::{Read, Write};

const VALID_IMAGE_NAME: &str = "my_awesome_img:14md35";
Expand Down Expand Up @@ -238,19 +237,19 @@ mod test {
where
Self: std::marker::Sized,
{
Ok(Self::new(&path.to_string()))
Ok(Self::new(path))
}

fn open(path: &str) -> anyhow::Result<Self>
where
Self: std::marker::Sized,
{
Ok(Self::new(&path.to_string()))
Ok(Self::new(path))
}
}

impl MockFileHandler {
fn new(_path: &String) -> Self {
fn new(_path: &str) -> Self {
Self { vec: Vec::new() }
}
}
Expand Down

0 comments on commit 5324392

Please sign in to comment.