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
157 }157 }
158 }158 }
159 fn prefixed(&mut self, prefix: &str, value: impl fmt::Display) {159 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());
161 }161 }
162 /// Create a new instance to help setting up arguments to send to the server as part of a `fetch` operation162 /// Create a new instance to help setting up arguments to send to the server as part of a `fetch` operation
163 /// for which `features` are the available and configured features to use.163 /// for which `features` are the available and configured features to use.
@@ -181,7 +181,7 @@ impl Arguments { · 17 unmodified lines
181 let baked_features = features181 let baked_features = features
182 .iter()182 .iter()
183 .map(|(n, v)| match v {183 .map(|(n, v)| match v {
184 Some(v) => format!("{}={}", n, v),184 Some(v) => format!("{n}={v}"),
185 None => n.to_string(),185 None => n.to_string(),
186 })186 })
187 .collect::<Vec<_>>();187 .collect::<Vec<_>>();