Skip to content

Commit

Permalink
Fix nightly clippy warnings (#1250)
Browse files Browse the repository at this point in the history
* Fix `clippy::extra-unused-lifetimes`

* Fix `clippy::let_unit_value`
  • Loading branch information
cmichi committed May 11, 2022
1 parent 2bccebf commit 4338af9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/env/src/call/execution_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl ExecutionInput<EmptyArgumentList> {
}
}

impl<'a, Head, Rest> ExecutionInput<ArgumentList<Argument<Head>, Rest>> {
impl<Head, Rest> ExecutionInput<ArgumentList<Argument<Head>, Rest>> {
/// Pushes an argument to the execution input.
#[inline]
pub fn push_arg<T>(self, arg: T) -> ExecutionInput<ArgsList<T, ArgsList<Head, Rest>>>
Expand Down Expand Up @@ -167,7 +167,7 @@ impl scale::Encode for EmptyArgumentList {
fn encode_to<O: scale::Output + ?Sized>(&self, _output: &mut O) {}
}

impl<'a, Head, Rest> scale::Encode for ArgumentList<Argument<Head>, Rest>
impl<Head, Rest> scale::Encode for ArgumentList<Argument<Head>, Rest>
where
Head: scale::Encode,
Rest: scale::Encode,
Expand Down
2 changes: 1 addition & 1 deletion crates/storage/src/collections/vec/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ fn spread_layout_clear_works() {
fn set_works() {
ink_env::test::run_test::<ink_env::DefaultEnvironment, _>(|_| {
let mut vec = vec_from_slice(&[b'a', b'b', b'c', b'd']);
let _ = vec.set(0, b'x').unwrap();
vec.set(0, b'x').unwrap();
let expected = vec_from_slice(&[b'x', b'b', b'c', b'd']);
assert_eq!(vec, expected);
Ok(())
Expand Down

0 comments on commit 4338af9

Please sign in to comment.