diff options
author | Brian Cully <bjc@kublai.com> | 2019-09-09 21:19:01 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-09-09 21:19:01 -0400 |
commit | 58a268850f34b660c9c71a3442b7cc70d21944da (patch) | |
tree | eb730c6f5590a1825aae0651c5bd0f8835806f18 /src/pipe.rs | |
parent | 27177f3d9b82c51a1131784123e9492f6d852c45 (diff) | |
download | atsamd-usb-host-58a268850f34b660c9c71a3442b7cc70d21944da.tar.gz atsamd-usb-host-58a268850f34b660c9c71a3442b7cc70d21944da.zip |
Clippy.
Diffstat (limited to 'src/pipe.rs')
-rw-r--r-- | src/pipe.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/pipe.rs b/src/pipe.rs index 59ae342..3715149 100644 --- a/src/pipe.rs +++ b/src/pipe.rs @@ -76,7 +76,7 @@ impl PipeTable { unsafe { core::mem::transmute(tbl) } }; - Self { tbl: tbl } + Self { tbl } } pub(crate) fn pipe_for<'a, 'b>( @@ -144,6 +144,7 @@ pub(crate) struct Pipe<'a, 'b> { pub(crate) desc: &'a mut PipeDesc, } impl Pipe<'_, '_> { + #[allow(clippy::too_many_arguments)] pub(crate) fn control_transfer( &mut self, ep: &mut dyn Endpoint, @@ -159,10 +160,10 @@ impl Pipe<'_, '_> { */ let buflen = buf.as_ref().map_or(0, |b| b.len() as u16); let mut setup_packet = SetupPacket { - bm_request_type: bm_request_type, - b_request: b_request, - w_value: w_value, - w_index: w_index, + bm_request_type, + b_request, + w_value, + w_index, w_length: buflen, }; self.send( |