Disable the doctest, since I don't have an impl of EventListener I can use

This commit is contained in:
Pi Lanningham 2023-11-10 21:52:26 -05:00 committed by KtorZ
parent 5068da3a17
commit 5945a9515b
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 4 additions and 3 deletions

View File

@ -30,13 +30,14 @@ pub fn default_filter(evt: &Event) -> bool {
/// Run a function each time a file in the project changes /// Run a function each time a file in the project changes
/// ///
/// ``` /// ```text
/// // Note: doctest disabled, because aiken_project doesn't have an implementation of EventListener I can use
/// use aiken_project::watch::{watch_project, default_filter}; /// use aiken_project::watch::{watch_project, default_filter};
/// use aiken_project::Project; /// use aiken_project::{Project};
/// watch_project(None, Terminal, default_filter, 500, |project| { /// watch_project(None, Terminal, default_filter, 500, |project| {
/// println!("Project changed!"); /// println!("Project changed!");
/// Ok(()) /// Ok(())
/// }) /// });
/// ``` /// ```
pub fn watch_project<T, F, A>( pub fn watch_project<T, F, A>(
directory: Option<PathBuf>, directory: Option<PathBuf>,