aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authortrinity-1686a <trinity@deuxfleurs.fr>2024-12-22 15:26:06 +0100
committertrinity-1686a <trinity@deuxfleurs.fr>2024-12-22 15:26:06 +0100
commitc939d2a936e60e8cb67ecae7a35706e7b7d73ab6 (patch)
tree81f0d77bc9d3001503ac50aefd71991a2642c691 /src/model
parent65e9dde8c99a4c1406e58da0741c9e566d18b1ff (diff)
downloadgarage-c939d2a936e60e8cb67ecae7a35706e7b7d73ab6.tar.gz
garage-c939d2a936e60e8cb67ecae7a35706e7b7d73ab6.zip
clippy
Diffstat (limited to 'src/model')
-rw-r--r--src/model/bucket_table.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/model/bucket_table.rs b/src/model/bucket_table.rs
index 625c177d..644189b2 100644
--- a/src/model/bucket_table.rs
+++ b/src/model/bucket_table.rs
@@ -90,21 +90,21 @@ mod v08 {
let mut res = String::new();
if let Some(hostname) = &self.hostname {
if let Some(protocol) = &self.protocol {
- res.push_str(&protocol);
+ res.push_str(protocol);
res.push_str("://");
} else {
res.push_str("//");
}
- res.push_str(&hostname);
+ res.push_str(hostname);
}
res.push('/');
if let Some(replace_key_prefix) = &self.replace_key_prefix {
- res.push_str(&replace_key_prefix);
+ res.push_str(replace_key_prefix);
if let Some(suffix) = suffix {
res.push_str(suffix)
}
} else if let Some(replace_key) = &self.replace_key {
- res.push_str(&replace_key)
+ res.push_str(replace_key)
}
res
}