diff options
author | Alex <lx@deuxfleurs.fr> | 2025-02-14 17:32:30 +0000 |
---|---|---|
committer | Alex <lx@deuxfleurs.fr> | 2025-02-14 17:32:30 +0000 |
commit | 859b38b0d260a0833e5e604c873c7d259acff22e (patch) | |
tree | 6b9cf06b8ec2240035c61d610fb2419c08f8fd56 /src/garage | |
parent | 89c944ebd6a08f27dae44d16e81c9487ec9f9c30 (diff) | |
parent | 2729a71d9dc55f142a7f89236b1c868a1bdb1c0f (diff) | |
download | garage-859b38b0d260a0833e5e604c873c7d259acff22e.tar.gz garage-859b38b0d260a0833e5e604c873c7d259acff22e.zip |
Merge pull request 'fix compilation warnings' (#959) from fixes into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/959
Diffstat (limited to 'src/garage')
-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 } } |