Skip to content

Commit

Permalink
fix the warning of cargo clippy.
Browse files Browse the repository at this point in the history
Signed-off-by: utam0k <[email protected]>
  • Loading branch information
utam0k committed Aug 22, 2022
1 parent b4a8b27 commit 0e2ebba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/libcontainer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const YOUKI_CONFIG_NAME: &str = "youki_config.json";

/// A configuration for passing information obtained during container creation to other commands.
/// Keeping the information to a minimum improves performance.
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq)]
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[non_exhaustive]
pub struct YoukiConfig {
pub hooks: Option<Hooks>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ pub struct ContainerCreate {
container_id: String,
}

impl<'a> Default for ContainerCreate {
impl Default for ContainerCreate {
fn default() -> Self {
Self::new()
}
}

impl<'a> ContainerCreate {
impl ContainerCreate {
pub fn new() -> Self {
let id = generate_uuid();
let temp_dir = prepare_bundle(&id).unwrap();
Expand Down

0 comments on commit 0e2ebba

Please sign in to comment.