Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/walkdir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoropilarium <opilar@ya.ru>2017-09-22 14:41:23 +0300
committerAndrew Gallant <jamslam@gmail.com>2017-09-30 15:22:58 +0300
commitf1f9a35f29a8ed0430e7aaaa933fba0d744c9b8e (patch)
treedbeda47343dfc793e8e087fcb1e22ac07999dcdd
parent13fdfb47518976bdd47698feb6c19c53474f3018 (diff)
executing try_main function is useless in no_run blocks
-rw-r--r--src/lib.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 53a4309..ac78668 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -41,10 +41,6 @@ for entry in WalkDir::new("foo") {
}
# Ok(())
# }
-#
-# fn main() {
-# try_main().unwrap();
-# }
```
Or, if you'd like to iterate over all entries and ignore any errors that may
@@ -75,10 +71,6 @@ for entry in WalkDir::new("foo").follow_links(true) {
}
# Ok(())
# }
-#
-# fn main() {
-# try_main().unwrap();
-# }
```
[`follow_links`]: struct.Walkdir.html#method.follow_links
@@ -106,10 +98,6 @@ for entry in walker.filter_entry(|e| !is_hidden(e)) {
}
# Ok(())
# }
-#
-# fn main() {
-# try_main().unwrap();
-}
```
[`filter_entry`]: struct.IntoIter.html#method.filter_entry
@@ -197,10 +185,6 @@ pub type Result<T> = ::std::result::Result<T, Error>;
/// }
/// # Ok(())
/// # }
-/// #
-/// # fn main() {
-/// # try_main().unwrap();
-/// # }
/// ```
///
/// [`IntoIterator`]: https://doc.rust-lang.org/stable/std/iter/trait.IntoIterator.html
@@ -221,10 +205,6 @@ pub type Result<T> = ::std::result::Result<T, Error>;
/// }
/// # Ok(())
/// # }
-/// #
-/// # fn main() {
-/// # try_main().unwrap();
-/// # }
/// ```
///
/// [`min_depth`]: struct.WalkDir.html#method.min_depth
@@ -713,10 +693,6 @@ impl IntoIter {
/// }
/// # Ok(())
/// # }
- /// #
- /// # fn main() {
- /// # try_main().unwrap();
- /// # }
/// ```
///
/// Note that the iterator will still yield errors for reading entries that
@@ -1134,10 +1110,6 @@ impl<P> FilterEntry<IntoIter, P>
/// }
/// # Ok(())
/// # }
- /// #
- /// # fn main() {
- /// # try_main().unwrap();
- /// # }
/// ```
///
/// Note that the iterator will still yield errors for reading entries that