diff options
author | Alex Auvolat <lx@deuxfleurs.fr> | 2025-02-14 18:27:00 +0100 |
---|---|---|
committer | Alex Auvolat <lx@deuxfleurs.fr> | 2025-02-14 18:27:00 +0100 |
commit | 2729a71d9dc55f142a7f89236b1c868a1bdb1c0f (patch) | |
tree | d038b6cead101d2e54371f76aa0c77ade47d3abe | |
parent | c9d00f5f7be307443d2f345398dd650c716fa04a (diff) | |
download | garage-2729a71d9dc55f142a7f89236b1c868a1bdb1c0f.tar.gz garage-2729a71d9dc55f142a7f89236b1c868a1bdb1c0f.zip |
fix warning in garage test
-rw-r--r-- | src/garage/tests/common/garage.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/garage/tests/common/garage.rs b/src/garage/tests/common/garage.rs index db23d316..da6c624b 100644 --- a/src/garage/tests/common/garage.rs +++ b/src/garage/tests/common/garage.rs @@ -13,7 +13,6 @@ static GARAGE_TEST_SECRET: &str = #[derive(Debug, Default, Clone)] pub struct Key { - pub name: Option<String>, pub id: 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.secret.is_empty(), "Invalid key: Key secret is empty"); - Key { - name: maybe_name.map(String::from), - ..key - } + key } } |