History

thanks clippy

Sebastian Thiel committed 3 years ago

Commit bac57dd1 parent e22080e100 files · +172 −230Browse files

Showing the changes to git-protocol/src/fetch (1 of 100 files). Show all

Unified · Split

git-protocol/src/fetch/arguments/mod.rs+2−2
@@ -157,7 +157,7 @@ impl Arguments { · 156 unmodified lines
157157 }
158158 }
159159 fn prefixed(&mut self, prefix: &str, value: impl fmt::Display) {
160− self.args.push(format!("{}{}", prefix, value).into());
160+ self.args.push(format!("{prefix}{value}").into());
161161 }
162162 /// Create a new instance to help setting up arguments to send to the server as part of a `fetch` operation
163163 /// for which `features` are the available and configured features to use.
@@ -181,7 +181,7 @@ impl Arguments { · 17 unmodified lines
181181 let baked_features = features
182182 .iter()
183183 .map(|(n, v)| match v {
184− Some(v) => format!("{}={}", n, v),
184+ Some(v) => format!("{n}={v}"),
185185 None => n.to_string(),
186186 })
187187 .collect::<Vec<_>>();