Skip to content

Commit

Permalink
Remove pub use of WebiconFamily
Browse files Browse the repository at this point in the history
  • Loading branch information
lindhe committed Aug 13, 2023
1 parent 6abf95d commit fba11df
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// vim: foldmethod=marker :

pub use self::metadata::WebiconFamily;

pub mod metadata {
//! Helpers for handling metadata for webicons.
//{{{
Expand Down Expand Up @@ -124,9 +122,9 @@ pub mod token {
/// # Examples
///
/// ```rust
/// use webicons::{token, WebiconFamily};
/// use webicons::{token, metadata};
///
/// assert_eq!("1f600", token::normalize_id("grinning", WebiconFamily::Emojis));
/// assert_eq!("1f600", token::normalize_id("grinning", metadata::WebiconFamily::Emojis));
/// ```
pub fn normalize_id(id: &str, family: WebiconFamily) -> String {
if family == WebiconFamily::Emojis && !unic_emoji_char::is_emoji(str_to_char(&id)) {
Expand Down Expand Up @@ -238,10 +236,10 @@ pub mod html {

#[cfg(test)]
mod tests {
//! Unit tests.
//! Unit tests for public traits.
//{{{

use super::*;
use super::metadata::WebiconFamily;
use std::str::FromStr;

#[test]
Expand Down

0 comments on commit fba11df

Please sign in to comment.