Skip to content

Commit 4ae7296

Browse files
committed
Fix unused variable names
1 parent 07972ee commit 4ae7296

File tree

4 files changed

+48
-1
lines changed

4 files changed

+48
-1
lines changed

Diff for: embassy-nrf/src/usb/mod.rs

+12
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,14 @@ impl<'d, T: Instance, V: VbusDetect + 'd> driver::Driver<'d> for Driver<'d, T, V
171171
}
172172

173173
fn grow_endpoint_in_buffer(&mut self, ep: &mut Self::EndpointIn, new_max_packet_size: u16) {
174+
let _ = new_max_packet_size;
175+
let _ = ep;
174176
warn!("Not implemented yet!!!");
175177
}
176178

177179
fn grow_endpoint_out_buffer(&mut self, ep: &mut Self::EndpointOut, new_max_packet_size: u16) {
180+
let _ = new_max_packet_size;
181+
let _ = ep;
178182
warn!("Not implemented yet!!!");
179183
}
180184
}
@@ -318,18 +322,26 @@ impl<'d, T: Instance, V: VbusDetect> driver::Bus for Bus<'d, T, V> {
318322
}
319323

320324
fn endpoint_set_buffersize(&mut self, ep_addr: EndpointAddress, buf_size: u16) {
325+
let _ = ep_addr;
326+
let _ = buf_size;
321327
warn!("Not implemented yet!!!");
322328
}
323329

324330
fn endpoint_set_sync_type(&mut self, ep_addr: EndpointAddress, synchronization_type: SynchronizationType) {
331+
let _ = ep_addr;
332+
let _ = synchronization_type;
325333
warn!("Not implemented yet!!!");
326334
}
327335

328336
fn endpoint_set_usage_type(&mut self, ep_addr: EndpointAddress, usage_type: UsageType) {
337+
let _ = ep_addr;
338+
let _ = usage_type;
329339
warn!("Not implemented yet!!!");
330340
}
331341

332342
fn endpoint_set_type(&mut self, ep_addr: EndpointAddress, ep_type: EndpointType) {
343+
let _ = ep_addr;
344+
let _ = ep_type;
333345
warn!("Not implemented yet!!!");
334346
}
335347

Diff for: embassy-stm32/src/usb/otg.rs

+12
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,14 @@ impl<'d, T: Instance> embassy_usb_driver::Driver<'d> for Driver<'d, T> {
236236
}
237237

238238
fn grow_endpoint_in_buffer(&mut self, ep: &mut Self::EndpointIn, new_max_packet_size: u16) {
239+
let _ = new_max_packet_size;
240+
let _ = ep;
239241
warn!("Not implemented yet!!!");
240242
}
241243

242244
fn grow_endpoint_out_buffer(&mut self, ep: &mut Self::EndpointOut, new_max_packet_size: u16) {
245+
let _ = new_max_packet_size;
246+
let _ = ep;
243247
warn!("Not implemented yet!!!");
244248
}
245249
}
@@ -329,18 +333,26 @@ impl<'d, T: Instance> embassy_usb_driver::Bus for Bus<'d, T> {
329333
}
330334

331335
fn endpoint_set_buffersize(&mut self, ep_addr: EndpointAddress, buf_size: u16) {
336+
let _ = ep_addr;
337+
let _ = buf_size;
332338
warn!("Not implemented yet!!!");
333339
}
334340

335341
fn endpoint_set_sync_type(&mut self, ep_addr: EndpointAddress, synchronization_type: SynchronizationType) {
342+
let _ = ep_addr;
343+
let _ = synchronization_type;
336344
warn!("Not implemented yet!!!");
337345
}
338346

339347
fn endpoint_set_usage_type(&mut self, ep_addr: EndpointAddress, usage_type: UsageType) {
348+
let _ = ep_addr;
349+
let _ = usage_type;
340350
warn!("Not implemented yet!!!");
341351
}
342352

343353
fn endpoint_set_type(&mut self, ep_addr: EndpointAddress, ep_type: EndpointType) {
354+
let _ = ep_addr;
355+
let _ = ep_type;
344356
warn!("Not implemented yet!!!");
345357
}
346358

Diff for: embassy-stm32/src/usb/usb.rs

+12-1
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,14 @@ impl<'d, T: Instance> driver::Driver<'d> for Driver<'d, T> {
521521
}
522522

523523
fn grow_endpoint_in_buffer(&mut self, ep: &mut Self::EndpointIn, new_max_packet_size: u16) {
524+
let _ = new_max_packet_size;
525+
let _ = ep;
524526
warn!("Not implemented yet!!!");
525527
}
526-
527528

528529
fn grow_endpoint_out_buffer(&mut self, ep: &mut Self::EndpointOut, new_max_packet_size: u16) {
530+
let _ = new_max_packet_size;
531+
let _ = ep;
529532
warn!("Not implemented yet!!!");
530533
}
531534
}
@@ -652,18 +655,26 @@ impl<'d, T: Instance> driver::Bus for Bus<'d, T> {
652655
}
653656

654657
fn endpoint_set_buffersize(&mut self, ep_addr: EndpointAddress, buf_size: u16) {
658+
let _ = ep_addr;
659+
let _ = buf_size;
655660
warn!("Not implemented yet!!!");
656661
}
657662

658663
fn endpoint_set_sync_type(&mut self, ep_addr: EndpointAddress, synchronization_type: SynchronizationType) {
664+
let _ = ep_addr;
665+
let _ = synchronization_type;
659666
warn!("Not implemented yet!!!");
660667
}
661668

662669
fn endpoint_set_usage_type(&mut self, ep_addr: EndpointAddress, usage_type: UsageType) {
670+
let _ = ep_addr;
671+
let _ = usage_type;
663672
warn!("Not implemented yet!!!");
664673
}
665674

666675
fn endpoint_set_type(&mut self, ep_addr: EndpointAddress, ep_type: EndpointType) {
676+
let _ = ep_addr;
677+
let _ = ep_type;
667678
warn!("Not implemented yet!!!");
668679
}
669680

Diff for: embassy-usb-synopsys-otg/src/lib.rs

+12
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,14 @@ impl<'d, const MAX_EP_COUNT: usize> embassy_usb_driver::Driver<'d> for Driver<'d
497497
}
498498

499499
fn grow_endpoint_in_buffer(&mut self, ep: &mut Self::EndpointIn, new_max_packet_size: u16) {
500+
let _ = new_max_packet_size;
501+
let _ = ep;
500502
warn!("Not implemented yet!!!");
501503
}
502504

503505
fn grow_endpoint_out_buffer(&mut self, ep: &mut Self::EndpointOut, new_max_packet_size: u16) {
506+
let _ = new_max_packet_size;
507+
let _ = ep;
504508
warn!("Not implemented yet!!!");
505509
}
506510
}
@@ -889,18 +893,26 @@ impl<'d, const MAX_EP_COUNT: usize> embassy_usb_driver::Bus for Bus<'d, MAX_EP_C
889893
}
890894

891895
fn endpoint_set_buffersize(&mut self, ep_addr: EndpointAddress, buf_size: u16) {
896+
let _ = ep_addr;
897+
let _ = buf_size;
892898
warn!("Not implemented yet!!!");
893899
}
894900

895901
fn endpoint_set_sync_type(&mut self, ep_addr: EndpointAddress, synchronization_type: SynchronizationType) {
902+
let _ = ep_addr;
903+
let _ = synchronization_type;
896904
warn!("Not implemented yet!!!");
897905
}
898906

899907
fn endpoint_set_usage_type(&mut self, ep_addr: EndpointAddress, usage_type: UsageType) {
908+
let _ = ep_addr;
909+
let _ = usage_type;
900910
warn!("Not implemented yet!!!");
901911
}
902912

903913
fn endpoint_set_type(&mut self, ep_addr: EndpointAddress, ep_type: EndpointType) {
914+
let _ = ep_addr;
915+
let _ = ep_type;
904916
warn!("Not implemented yet!!!");
905917
}
906918

0 commit comments

Comments
 (0)