Skip to content

Commit

Permalink
fixed new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed May 10, 2024
1 parent fd62fb9 commit b9c36b1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions data/codec/tests/derive_struct_with_generic_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use codec::{
// to test, run the following command in the crate folder:
// cargo expand --test struct_with_generic_derive_test > expanded.rs

#[allow(dead_code)]
trait SimpleTrait {
fn simple_function(&self);
}
Expand Down
6 changes: 0 additions & 6 deletions framework/base/src/types/managed/wrapped/managed_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::{
codec::{
DecodeError, DecodeErrorHandler, EncodeErrorHandler, NestedDecode, NestedDecodeInput,
NestedEncode, NestedEncodeOutput, TopDecode, TopDecodeInput, TopEncode, TopEncodeOutput,
TryStaticCast,
},
formatter::{hex_util::encode_bytes_as_hex, FormatByteReceiver, SCLowerHex},
types::{heap::Address, ManagedBuffer, ManagedByteArray, ManagedType},
Expand Down Expand Up @@ -200,11 +199,6 @@ where
}
}

#[derive(Clone)]
pub(crate) struct ManagedBufferSizeContext(pub usize);

impl TryStaticCast for ManagedBufferSizeContext {}

impl<M> NestedEncode for ManagedAddress<M>
where
M: ManagedTypeApi,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ impl StaticVarApi for VmApiImpl {
}

impl StaticVarApiImpl for VmApiImpl {
#[allow(static_mut_refs)]
fn with_lockable_static_buffer<R, F: FnOnce(&mut LockableStaticBuffer) -> R>(&self, f: F) -> R {
unsafe { f(&mut STATIC_BUFFER) }
}
Expand Down

0 comments on commit b9c36b1

Please sign in to comment.