Unified · Split
| @@ -56,7 +56,7 @@ impl Command { · 55 unmodified lines | |||
| 56 | self.all_argument_prefixes() | 56 | self.all_argument_prefixes() |
| 57 | .iter() | 57 | .iter() |
| 58 | .filter(|s| !(s.ends_with(' ') || s.ends_with('='))) | 58 | .filter(|s| !(s.ends_with(' ') || s.ends_with('='))) |
| 59 | .map(|s| *s) | 59 | .copied() |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | pub(crate) fn collect_initial_features<'a>( | 62 | pub(crate) fn collect_initial_features<'a>( |
| @@ -76,7 +76,7 @@ pub(crate) fn from_capabilities<'a>( · 75 unmodified lines | |||
| 76 | capabilities: impl Iterator<Item = git_transport::client::capabilities::Capability<'a>>, | 76 | capabilities: impl Iterator<Item = git_transport::client::capabilities::Capability<'a>>, |
| 77 | ) -> Result<(), Error> { | 77 | ) -> Result<(), Error> { |
| 78 | let symref_values = capabilities.filter_map(|c| { | 78 | let symref_values = capabilities.filter_map(|c| { |
| 79 | if c.name() == "symref".as_bytes().as_bstr() { | 79 | if c.name() == b"symref".as_bstr() { |
| 80 | c.value().map(ToOwned::to_owned) | 80 | c.value().map(ToOwned::to_owned) |
| 81 | } else { | 81 | } else { |
| 82 | None | 82 | None |