mirror of
https://github.com/alexpasmantier/television.git
synced 2025-07-21 17:40:00 +00:00
fix: doctests imports
This commit is contained in:
parent
c1f41bf107
commit
f449477605
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user