Skip to content

Commit

Permalink
Removed deny due to rust-lang/rust#101730. Made the example code to p…
Browse files Browse the repository at this point in the history
…ass tests.
  • Loading branch information
Juha Ruotsalainen committed Nov 19, 2022
1 parent 0ffc11a commit 0c556c2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//! (almost as fast as walkdir).
//!
#![warn(missing_docs)]
#![deny(rustdoc::missing_doc_code_examples)]
#![allow(unused)]
use infer;
use std::io;
Expand Down Expand Up @@ -46,6 +45,13 @@ pub struct MediaWalkResult {
/// # Examples
///
/// ```
/// use std::env;
/// use std::path::PathBuf;
/// use mediawalker::{start_walking, MediaWalkResult};
/// let mut resource_dir = PathBuf::new();
/// if let Ok(manifest_dir) = env::var("CARGO_MANIFEST_DIR") {
/// resource_dir.push(manifest_dir);
/// }
/// let rx = start_walking(&resource_dir);
/// for received in rx {
/// match received.result {
Expand All @@ -61,7 +67,6 @@ pub struct MediaWalkResult {
/// }
/// }
/// }

pub fn start_walking(first_step: &PathBuf) -> Receiver<MediaWalkResult> {
let (tx, rx) = mpsc::channel();

Expand Down

0 comments on commit 0c556c2

Please sign in to comment.