diff --git a/client/src/sessions/password.rs b/client/src/sessions/password.rs index b039d64..528d55d 100644 --- a/client/src/sessions/password.rs +++ b/client/src/sessions/password.rs @@ -39,7 +39,6 @@ impl PasswordSession { /// PasswordSession::new(&bad_password).err().unwrap(), /// TpmRcError::Size /// ); - /// ``` pub fn new + ?Sized>(password: &T) -> TpmRcResult { Ok(PasswordSession { diff --git a/marshalable-derive/src/lib.rs b/marshalable-derive/src/lib.rs index 5491b2f..3fb92c2 100644 --- a/marshalable-derive/src/lib.rs +++ b/marshalable-derive/src/lib.rs @@ -24,7 +24,6 @@ use syn::{ /// generated code will include a discriminant() implementation that returns /// $primitive, try_{un}marshal routines that accept an external selector, and will /// {un}marshal the discriminant in BE format prior to the variant. - #[proc_macro_derive(Marshalable, attributes(marshalable))] pub fn derive_tpm_marshal(input: proc_macro::TokenStream) -> proc_macro::TokenStream { let input = parse_macro_input!(input as DeriveInput); diff --git a/server/src/buffers/inout.rs b/server/src/buffers/inout.rs index c76d99c..11e1123 100644 --- a/server/src/buffers/inout.rs +++ b/server/src/buffers/inout.rs @@ -14,7 +14,7 @@ impl<'a, W: TpmWriteBuffer + ?Sized> InOutBuffer<'a, W> { } } -impl<'a, W: TpmWriteBuffer + ?Sized> TpmBuffers for InOutBuffer<'a, W> { +impl TpmBuffers for InOutBuffer<'_, W> { type Request = Self; type Response = W; @@ -26,7 +26,7 @@ impl<'a, W: TpmWriteBuffer + ?Sized> TpmBuffers for InOutBuffer<'a, W> { } } -impl<'a, W: TpmWriteBuffer + ?Sized> TpmReadBuffer for InOutBuffer<'a, W> { +impl TpmReadBuffer for InOutBuffer<'_, W> { fn len(&self) -> usize { self.len } diff --git a/server/src/buffers/separate.rs b/server/src/buffers/separate.rs index 1bf2000..3351401 100644 --- a/server/src/buffers/separate.rs +++ b/server/src/buffers/separate.rs @@ -16,7 +16,7 @@ where } } -impl<'a, R, W> TpmBuffers for SeparateBuffers<'a, R, W> +impl TpmBuffers for SeparateBuffers<'_, R, W> where R: TpmReadBuffer + ?Sized, W: TpmWriteBuffer + ?Sized, diff --git a/server/src/req_resp.rs b/server/src/req_resp.rs index a2c5180..4ee08b9 100644 --- a/server/src/req_resp.rs +++ b/server/src/req_resp.rs @@ -48,7 +48,7 @@ pub struct Response<'a, B: TpmBuffers> { buffers: &'a mut RequestResponseCursor, } -impl<'a, B: TpmBuffers> Response<'a, B> { +impl Response<'_, B> { /// Writes the specified `data` at the last written location and updates the internal /// last written location. Returns [`WriteOutOfBounds`] if write would have written past the the /// of the underlying [`TpmWriteBuffer`]. diff --git a/unionify/src/lib.rs b/unionify/src/lib.rs index 6f79595..97a5895 100644 --- a/unionify/src/lib.rs +++ b/unionify/src/lib.rs @@ -24,7 +24,6 @@ pub trait UnionSize { } #[cfg(test)] - mod test { #[test] fn test_unionify() {