Showing the changes to git-protocol/src (2 of 2 files). Show all
Unified · Split
| @@ -56,7 +56,7 @@ impl Command { · 55 unmodified lines | ||
| 56 | 56 | self.all_argument_prefixes() |
| 57 | 57 | .iter() |
| 58 | 58 | .filter(|s| !(s.ends_with(' ') || s.ends_with('='))) |
| 59 | − .map(|s| *s) | |
| 59 | + .copied() | |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | pub(crate) fn collect_initial_features<'a>( |
| @@ -76,7 +76,7 @@ pub(crate) fn from_capabilities<'a>( · 75 unmodified lines | ||
| 76 | 76 | capabilities: impl Iterator<Item = git_transport::client::capabilities::Capability<'a>>, |
| 77 | 77 | ) -> Result<(), Error> { |
| 78 | 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 | 80 | c.value().map(ToOwned::to_owned) |
| 81 | 81 | } else { |
| 82 | 82 | None |