diff options
author | Leonhard Markert <curiousleo@users.noreply.github.com> | 2019-11-10 23:14:13 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-15 13:42:52 +0100 |
commit | 9ddabb9b4311a1dcee01df0aaf4b16387312f1e8 (patch) | |
tree | 163fb5d78cd9ed9218e3a5f25e441bbe8b302965 /guide | |
parent | 2f65307468e44d603f82d3dc033c11054dc3a772 (diff) |
Fix rustc warnings.
Diffstat (limited to 'guide')
-rw-r--r-- | guide/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guide/build.rs b/guide/build.rs index 3d73a984..c54213df 100644 --- a/guide/build.rs +++ b/guide/build.rs @@ -5,7 +5,7 @@ use std::ffi::OsString; use std::path::{Path, PathBuf}; // one possible implementation of walking a directory only visiting files -fn visit_dirs(dir: &Path, cb: &Fn(&DirEntry) -> io::Result<()>) +fn visit_dirs(dir: &Path, cb: &dyn Fn(&DirEntry) -> io::Result<()>) -> io::Result<()> { if dir.is_dir() { for entry in fs::read_dir(dir)? { |