1
0
mirror of https://github.com/containers/youki synced 2024-11-26 14:13:49 +01:00

fix the warning of cargo clippy.

Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
utam0k 2022-08-22 21:26:24 +09:00
parent b4a8b27834
commit 0e2ebba396
No known key found for this signature in database
GPG Key ID: 14ACDDE088DF059E
2 changed files with 3 additions and 3 deletions

@ -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>,

@ -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();