Skip to content

Commit

Permalink
Fix new clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimahriman committed Dec 5, 2024
1 parent f72ab92 commit 58632f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/src/security/gssapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ fn libgssapi() -> crate::Result<&'static bindings::GSSAPI> {
#[derive(Debug)]
struct GssBuf<'a>(bindings::gss_buffer_desc_struct, PhantomData<&'a [u8]>);

impl<'a> GssBuf<'a> {
impl GssBuf<'_> {
fn new() -> Self {
Self(
bindings::gss_buffer_desc_struct {
Expand All @@ -100,7 +100,7 @@ impl<'a> GssBuf<'a> {
}
}

impl<'a> Deref for GssBuf<'a> {
impl Deref for GssBuf<'_> {
type Target = [u8];

fn deref(&self) -> &Self::Target {
Expand Down Expand Up @@ -132,7 +132,7 @@ impl<'a> From<&'a str> for GssBuf<'a> {
}
}

impl<'a> GssBuf<'a> {
impl GssBuf<'_> {
pub(crate) unsafe fn as_ptr(&mut self) -> bindings::gss_buffer_t {
&mut self.0 as bindings::gss_buffer_t
}
Expand Down

0 comments on commit 58632f7

Please sign in to comment.