Skip to content

Commit

Permalink
Fix cargo doc warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
  • Loading branch information
elmarco committed Aug 11, 2021
1 parent 5b906d3 commit 11bca16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ pub trait UsbContext: Clone + Sized + Send + Sync {
/// [Hotplug::device_arrived] method is called when a new device is added to
/// the bus, and [Hotplug::device_left] is called when it is removed.
///
/// Devices can optionally be filtered by vendor ([vendor_id]) and device id
/// ([device_id]). If [enumerate] is `true`, then devices that are already
/// connected will cause your callback's `device_arrived()` method to be
/// called for them.
/// Devices can optionally be filtered by `vendor_id` and `device_id`. If
/// `enumerate` is `true`, then devices that are already connected will
/// cause your callback's `device_arrived()` method to be called for them.
///
/// The callback will remain registered until the returned [Registration] is
/// dropped, which can be done explicitly with [hotplug_unregister_callback].
/// dropped, which can be done explicitly with
/// [hotplug_unregister_callback][Self::hotplug_unregister_callback()].
#[must_use = "USB hotplug callbacks will be deregistered if the registration is dropped"]
fn hotplug_register_callback(
&self,
Expand Down

0 comments on commit 11bca16

Please sign in to comment.