Skip to content

Commit 4620b2b

Browse files
committed
cargo fmt
1 parent 6dfb74d commit 4620b2b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

notify/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,9 @@ pub trait Watcher {
327327
fn watch(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()>;
328328

329329
/// Begin to add/remove paths to watch.
330-
///
330+
///
331331
/// For some watcher implementations this method provides better performance than multiple calls to [`Watcher::watch`] and [`Watcher::unwatch`] if you want to add/remove many paths at once.
332-
fn paths_mut<'me>(
333-
&'me mut self
334-
) -> Box<dyn PathsMut + 'me> {
332+
fn paths_mut<'me>(&'me mut self) -> Box<dyn PathsMut + 'me> {
335333
struct DefaultPathsMut<'a, T: ?Sized>(&'a mut T);
336334
impl<'a, T: Watcher + ?Sized> PathsMut for DefaultPathsMut<'a, T> {
337335
fn add(&mut self, path: &Path, recursive_mode: RecursiveMode) -> Result<()> {
@@ -343,7 +341,6 @@ pub trait Watcher {
343341
fn commit(&mut self) -> Result<()> {
344342
Ok(())
345343
}
346-
347344
}
348345
Box::new(DefaultPathsMut(self))
349346
}

0 commit comments

Comments
 (0)