diff --git a/rslib/src/collection/mod.rs b/rslib/src/collection/mod.rs index 49fc04514..c4d2ae807 100644 --- a/rslib/src/collection/mod.rs +++ b/rslib/src/collection/mod.rs @@ -132,7 +132,7 @@ pub struct CollectionState { } pub struct Collection { - pub(crate) storage: SqliteStorage, + pub storage: SqliteStorage, #[allow(dead_code)] pub(crate) col_path: PathBuf, pub(crate) media_folder: PathBuf, diff --git a/rslib/src/decks/mod.rs b/rslib/src/decks/mod.rs index d3ff199b4..893c12569 100644 --- a/rslib/src/decks/mod.rs +++ b/rslib/src/decks/mod.rs @@ -158,7 +158,7 @@ impl Collection { } impl Collection { - pub(crate) fn get_deck(&mut self, did: DeckId) -> Result>> { + pub fn get_deck(&mut self, did: DeckId) -> Result>> { if let Some(deck) = self.state.deck_cache.get(&did) { return Ok(Some(deck.clone())); } diff --git a/rslib/src/text.rs b/rslib/src/text.rs index 802d91be3..b09c50abf 100644 --- a/rslib/src/text.rs +++ b/rslib/src/text.rs @@ -101,7 +101,7 @@ lazy_static! { "# ).unwrap(); - pub(crate) static ref HTML_MEDIA_TAGS: Regex = Regex::new( + pub static ref HTML_MEDIA_TAGS: Regex = Regex::new( r#"(?xsi) # the start of the image, audio, or object tag <\b(?:img|audio|object)\b[^>]+\b(?:src|data)\b= @@ -284,7 +284,7 @@ pub(crate) fn extract_media_refs(text: &str) -> Vec { /// Calls `replacer` for every media reference in `text`, and optionally /// replaces it with something else. [None] if no reference was found. -pub(crate) fn replace_media_refs( +pub fn replace_media_refs( text: &str, mut replacer: impl FnMut(&str) -> Option, ) -> Option {