aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-usb')
-rw-r--r--embassy-usb/src/class/web_usb.rs2
-rw-r--r--embassy-usb/src/lib.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/embassy-usb/src/class/web_usb.rs b/embassy-usb/src/class/web_usb.rs
index 10ebf318d..405944f14 100644
--- a/embassy-usb/src/class/web_usb.rs
+++ b/embassy-usb/src/class/web_usb.rs
@@ -140,7 +140,7 @@ pub struct WebUsb<'d, D: Driver<'d>> {
140impl<'d, D: Driver<'d>> WebUsb<'d, D> { 140impl<'d, D: Driver<'d>> WebUsb<'d, D> {
141 /// Builder for the WebUSB capability implementation. 141 /// Builder for the WebUSB capability implementation.
142 /// 142 ///
143 /// Pass in a USB `Builder`, a `State`, which holds the the control endpoint state, and a `Config` for the WebUSB configuration. 143 /// Pass in a USB `Builder`, a `State`, which holds the control endpoint state, and a `Config` for the WebUSB configuration.
144 pub fn configure(builder: &mut Builder<'d, D>, state: &'d mut State<'d>, config: &'d Config<'d>) { 144 pub fn configure(builder: &mut Builder<'d, D>, state: &'d mut State<'d>, config: &'d Config<'d>) {
145 let mut func = builder.function(USB_CLASS_VENDOR, USB_SUBCLASS_NONE, USB_PROTOCOL_NONE); 145 let mut func = builder.function(USB_CLASS_VENDOR, USB_SUBCLASS_NONE, USB_PROTOCOL_NONE);
146 let mut iface = func.interface(); 146 let mut iface = func.interface();
diff --git a/embassy-usb/src/lib.rs b/embassy-usb/src/lib.rs
index 93dd6b4d2..0638fd0a2 100644
--- a/embassy-usb/src/lib.rs
+++ b/embassy-usb/src/lib.rs
@@ -120,7 +120,7 @@ pub trait Handler {
120 /// # Returns 120 /// # Returns
121 /// 121 ///
122 /// If you didn't handle this request (for example if it's for the wrong interface), return 122 /// If you didn't handle this request (for example if it's for the wrong interface), return
123 /// `None`. In this case, the the USB stack will continue calling the other handlers, to see 123 /// `None`. In this case, the USB stack will continue calling the other handlers, to see
124 /// if another handles it. 124 /// if another handles it.
125 /// 125 ///
126 /// If you did, return `Some` with either `Accepted` or `Rejected`. This will make the USB stack 126 /// If you did, return `Some` with either `Accepted` or `Rejected`. This will make the USB stack
@@ -142,7 +142,7 @@ pub trait Handler {
142 /// # Returns 142 /// # Returns
143 /// 143 ///
144 /// If you didn't handle this request (for example if it's for the wrong interface), return 144 /// If you didn't handle this request (for example if it's for the wrong interface), return
145 /// `None`. In this case, the the USB stack will continue calling the other handlers, to see 145 /// `None`. In this case, the USB stack will continue calling the other handlers, to see
146 /// if another handles it. 146 /// if another handles it.
147 /// 147 ///
148 /// If you did, return `Some` with either `Accepted` or `Rejected`. This will make the USB stack 148 /// If you did, return `Some` with either `Accepted` or `Rejected`. This will make the USB stack