fix: doctests imports

This commit is contained in:
Alexandre Pasmantier 2024-11-09 23:37:38 +01:00
parent c1f41bf107
commit f449477605
3 changed files with 7 additions and 5 deletions

View File

@ -28,7 +28,7 @@ where
///
/// # Example
/// ```
/// use television_fuzzy::matcher::{Config, Matcher};
/// use television_fuzzy::matcher::{config::Config, Matcher};
///
/// let config = Config::default();
/// let matcher = Matcher::new(config);

View File

@ -25,6 +25,8 @@ use std::ops::DerefMut;
/// static THING_TO_LAZY_INIT: LazyMutex<Thing> = LazyMutex::new(|| {
/// Thing::new()
/// });
///
/// let _thing = THING_TO_LAZY_INIT.lock();
/// ```
pub struct LazyMutex<T> {
/// The inner value, wrapped in a mutex.
@ -58,7 +60,7 @@ impl<T> LazyMutex<T> {
/// This matcher is used as a convenience for computing match indices on a subset of matched items.
///
/// # Example
/// ```
/// ```ignore
/// use television_fuzzy::matcher::{lazy::MATCHER, matched_item::MatchedItem};
///
/// let snapshot = channel_matcher.snapshot();

View File

@ -89,7 +89,7 @@ where
///
/// # Example
/// ```
/// use television_fuzzy::matcher::{Config, Matcher};
/// use television_fuzzy::matcher::{config::Config, Matcher};
///
/// let config = Config::default();
/// let matcher = Matcher::new(config);
@ -139,7 +139,7 @@ where
///
/// # Example
/// ```
/// use television_fuzzy::matcher::{Config, Matcher};
/// use television_fuzzy::matcher::{config::Config, Matcher};
///
/// let config = Config::default();
/// let mut matcher: Matcher<String> = Matcher::new(config);
@ -195,7 +195,7 @@ where
///
/// # Example
/// ```
/// use television_fuzzy::matcher::{Config, Matcher};
/// use television_fuzzy::matcher::{config::Config, Matcher};
///
/// let config = Config::default();
/// let mut matcher: Matcher<String> = Matcher::new(config);