mirror of
https://github.com/containers/youki
synced 2024-11-26 06:08:07 +01:00
fix the warning of cargo clippy.
Signed-off-by: utam0k <k0ma@utam0k.jp>
This commit is contained in:
parent
b4a8b27834
commit
0e2ebba396
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user