mirror of
https://github.com/alexpasmantier/television.git
synced 2025-07-22 18:10:01 +00:00
fix: doctests imports
This commit is contained in:
parent
c1f41bf107
commit
f449477605
@ -28,7 +28,7 @@ where
|
|||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
/// use television_fuzzy::matcher::{Config, Matcher};
|
/// use television_fuzzy::matcher::{config::Config, Matcher};
|
||||||
///
|
///
|
||||||
/// let config = Config::default();
|
/// let config = Config::default();
|
||||||
/// let matcher = Matcher::new(config);
|
/// let matcher = Matcher::new(config);
|
||||||
|
@ -25,6 +25,8 @@ use std::ops::DerefMut;
|
|||||||
/// static THING_TO_LAZY_INIT: LazyMutex<Thing> = LazyMutex::new(|| {
|
/// static THING_TO_LAZY_INIT: LazyMutex<Thing> = LazyMutex::new(|| {
|
||||||
/// Thing::new()
|
/// Thing::new()
|
||||||
/// });
|
/// });
|
||||||
|
///
|
||||||
|
/// let _thing = THING_TO_LAZY_INIT.lock();
|
||||||
/// ```
|
/// ```
|
||||||
pub struct LazyMutex<T> {
|
pub struct LazyMutex<T> {
|
||||||
/// The inner value, wrapped in a mutex.
|
/// 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.
|
/// This matcher is used as a convenience for computing match indices on a subset of matched items.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```ignore
|
||||||
/// use television_fuzzy::matcher::{lazy::MATCHER, matched_item::MatchedItem};
|
/// use television_fuzzy::matcher::{lazy::MATCHER, matched_item::MatchedItem};
|
||||||
///
|
///
|
||||||
/// let snapshot = channel_matcher.snapshot();
|
/// let snapshot = channel_matcher.snapshot();
|
||||||
|
@ -89,7 +89,7 @@ where
|
|||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
/// use television_fuzzy::matcher::{Config, Matcher};
|
/// use television_fuzzy::matcher::{config::Config, Matcher};
|
||||||
///
|
///
|
||||||
/// let config = Config::default();
|
/// let config = Config::default();
|
||||||
/// let matcher = Matcher::new(config);
|
/// let matcher = Matcher::new(config);
|
||||||
@ -139,7 +139,7 @@ where
|
|||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
/// use television_fuzzy::matcher::{Config, Matcher};
|
/// use television_fuzzy::matcher::{config::Config, Matcher};
|
||||||
///
|
///
|
||||||
/// let config = Config::default();
|
/// let config = Config::default();
|
||||||
/// let mut matcher: Matcher<String> = Matcher::new(config);
|
/// let mut matcher: Matcher<String> = Matcher::new(config);
|
||||||
@ -195,7 +195,7 @@ where
|
|||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```
|
/// ```
|
||||||
/// use television_fuzzy::matcher::{Config, Matcher};
|
/// use television_fuzzy::matcher::{config::Config, Matcher};
|
||||||
///
|
///
|
||||||
/// let config = Config::default();
|
/// let config = Config::default();
|
||||||
/// let mut matcher: Matcher<String> = Matcher::new(config);
|
/// let mut matcher: Matcher<String> = Matcher::new(config);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user