fix warning in garage test
This commit is contained in:
parent
c9d00f5f7b
commit
2729a71d9d
1 changed files with 1 additions and 5 deletions
|
@ -13,7 +13,6 @@ static GARAGE_TEST_SECRET: &str =
|
||||||
|
|
||||||
#[derive(Debug, Default, Clone)]
|
#[derive(Debug, Default, Clone)]
|
||||||
pub struct Key {
|
pub struct Key {
|
||||||
pub name: Option<String>,
|
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub secret: String,
|
pub secret: String,
|
||||||
}
|
}
|
||||||
|
@ -213,10 +212,7 @@ api_bind_addr = "127.0.0.1:{admin_port}"
|
||||||
assert!(!key.id.is_empty(), "Invalid key: Key ID is empty");
|
assert!(!key.id.is_empty(), "Invalid key: Key ID is empty");
|
||||||
assert!(!key.secret.is_empty(), "Invalid key: Key secret is empty");
|
assert!(!key.secret.is_empty(), "Invalid key: Key secret is empty");
|
||||||
|
|
||||||
Key {
|
key
|
||||||
name: maybe_name.map(String::from),
|
|
||||||
..key
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue