Skip to content

Commit

Permalink
run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanvanSchaik committed Nov 11, 2022
1 parent b40623b commit 29b33ed
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions rusb-async/src/hotplug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,11 @@ impl HotplugBuilder {
) -> Result<Registration<U>, Error> {
let (tx, rx): (Sender<HotplugEvent<U>>, Receiver<HotplugEvent<U>>) = channel(1);

let hotplug = Box::new(Hotplug {
tx,
});
let hotplug = Box::new(Hotplug { tx });

let inner = self.inner.register(context, hotplug)?;

Ok(Registration {
_inner: inner,
rx,
})
Ok(Registration { _inner: inner, rx })
}
}

Expand Down

0 comments on commit 29b33ed

Please sign in to comment.