From b5fba187ffc9df8623ad2166e7a2d3cc0af9ceff Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Fri, 31 May 2019 10:51:36 +0200 Subject: [PATCH] Fix clippy issues --- rust-bindings/rust/src/repo.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust-bindings/rust/src/repo.rs b/rust-bindings/rust/src/repo.rs index 219b5f77..cc9cc10f 100644 --- a/rust-bindings/rust/src/repo.rs +++ b/rust-bindings/rust/src/repo.rs @@ -54,7 +54,7 @@ impl Repo { commit_checksum.to_glib_none().0, maxdepth, &mut hashtable, - cancellable.map(|p| p.as_ref()).to_glib_none().0, + cancellable.map(AsRef::as_ref).to_glib_none().0, &mut error, ); if error.is_null() { @@ -77,7 +77,7 @@ impl Repo { self.to_glib_none().0, refspec_prefix.to_glib_none().0, &mut hashtable, - cancellable.map(|p| p.as_ref()).to_glib_none().0, + cancellable.map(AsRef::as_ref).to_glib_none().0, &mut error, ); @@ -104,7 +104,7 @@ impl Repo { refspec_prefix.to_glib_none().0, &mut hashtable, flags.to_glib(), - cancellable.map(|p| p.as_ref()).to_glib_none().0, + cancellable.map(AsRef::as_ref).to_glib_none().0, &mut error, );