Showing the changes to git-protocol/src/fetch (1 of 100 files). Show all
Unified · Split
| @@ -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` operation | 162 | /// 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 = features | 181 | 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<_>>(); |