Skip to content

Commit 5551a47

Browse files
authored
Fix new clippy lints (#168)
1 parent f72ab92 commit 5551a47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rust/src/security/gssapi.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn libgssapi() -> crate::Result<&'static bindings::GSSAPI> {
8888
#[derive(Debug)]
8989
struct GssBuf<'a>(bindings::gss_buffer_desc_struct, PhantomData<&'a [u8]>);
9090

91-
impl<'a> GssBuf<'a> {
91+
impl GssBuf<'_> {
9292
fn new() -> Self {
9393
Self(
9494
bindings::gss_buffer_desc_struct {
@@ -100,7 +100,7 @@ impl<'a> GssBuf<'a> {
100100
}
101101
}
102102

103-
impl<'a> Deref for GssBuf<'a> {
103+
impl Deref for GssBuf<'_> {
104104
type Target = [u8];
105105

106106
fn deref(&self) -> &Self::Target {
@@ -132,7 +132,7 @@ impl<'a> From<&'a str> for GssBuf<'a> {
132132
}
133133
}
134134

135-
impl<'a> GssBuf<'a> {
135+
impl GssBuf<'_> {
136136
pub(crate) unsafe fn as_ptr(&mut self) -> bindings::gss_buffer_t {
137137
&mut self.0 as bindings::gss_buffer_t
138138
}

0 commit comments

Comments
 (0)