Skip to content

Commit

Permalink
Fix Clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
yogh333 committed Jan 6, 2025
1 parent 0e08ef8 commit 71f3cb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/app_ui/fields_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ pub struct FieldsWriter<'a, const N: usize> {
#[cfg(feature = "speculos")]
use ledger_device_sdk::testing;

#[derive(Debug)]
pub struct FieldsOverflow;

impl<'a, const N: usize> FieldsWriter<'a, N> {
pub fn new() -> Self {
let max_fields = [(); N].map(|_| Field {
Expand Down
4 changes: 2 additions & 2 deletions src/parsing/transaction_stream_reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl<R: io::Read> io::Read for HashingStream<R> {
}
}

impl<'a> SingleTxStream<'a> {
impl SingleTxStream<'_> {
pub fn peek_u8(&mut self) -> io::Result<Option<u8>> {
let data = self
.comm
Expand Down Expand Up @@ -132,7 +132,7 @@ impl<'a> SingleTxStream<'a> {
}
}

impl<'a> io::Read for SingleTxStream<'a> {
impl io::Read for SingleTxStream<'_> {
fn read(&mut self, buf: &mut [u8]) -> io::Result<usize> {
let data = self
.comm
Expand Down

0 comments on commit 71f3cb2

Please sign in to comment.