From c48dd306f45d2b8f7a2c7c777963f1e7e418029f Mon Sep 17 00:00:00 2001 From: Lotte Steenbrink Date: Fri, 3 Jul 2020 16:28:16 +0200 Subject: [PATCH] usb-3-solution.rs, usb-2.rs: rm trailing commata --- advanced/firmware/src/bin/usb-2.rs | 2 +- advanced/firmware/src/bin/usb-3-solution.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced/firmware/src/bin/usb-2.rs b/advanced/firmware/src/bin/usb-2.rs index 8c5f95a..abcf6df 100644 --- a/advanced/firmware/src/bin/usb-2.rs +++ b/advanced/firmware/src/bin/usb-2.rs @@ -78,7 +78,7 @@ fn on_event(_usbd: &USBD, event: Event) { // On Mac OS you'll get this request before the GET_DESCRIPTOR request so we // need to catch it here. We'll properly handle this request later // but for now it's OK to do nothing. - }, + } _ => unreachable!(), // we don't handle any other Requests } } diff --git a/advanced/firmware/src/bin/usb-3-solution.rs b/advanced/firmware/src/bin/usb-3-solution.rs index 2afd70f..6739de4 100644 --- a/advanced/firmware/src/bin/usb-3-solution.rs +++ b/advanced/firmware/src/bin/usb-3-solution.rs @@ -94,7 +94,7 @@ fn on_event(usbd: &USBD, ep0in: &mut Ep0In, event: Event) { // On Mac OS you'll get this request before the GET_DESCRIPTOR request so we // need to catch it here. We'll properly handle this request later // but for now it's OK to do nothing. - }, + } _ => { log::error!("unknown request (goal achieved if GET_DESCRIPTOR Device was handled)"); dk::exit()