Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Nov 7, 2022
1 parent 3046646 commit 0dc4c6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-transport/src/client/capabilities.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use bstr::{BStr, BString, ByteSlice};
use git_packetline::TextRef;

#[cfg(any(feature = "blocking-client", feature = "async-client"))]
use crate::client;
Expand Down Expand Up @@ -134,7 +133,7 @@ impl Capabilities {
/// internal use
#[cfg(any(feature = "blocking-client", feature = "async-client"))]
impl Capabilities {
fn extract_protocol<'a>(capabilities_or_version: TextRef<'a>) -> Result<Protocol, client::Error> {
fn extract_protocol(capabilities_or_version: git_packetline::TextRef<'_>) -> Result<Protocol, client::Error> {
let line = capabilities_or_version.as_bstr();
let version = if line.starts_with_str("version ") {
if line.len() != "version X".len() {
Expand Down

0 comments on commit 0dc4c6f

Please sign in to comment.