Skip to content

Commit

Permalink
Update to 2018 edition.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Oct 12, 2023
1 parent ce64718 commit da8a589
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ keywords = ["humanize", "human", "parse", "format"]
documentation = "https://endoli.github.io/humanize.rs"
homepage = "https://github.com/endoli/humanize.rs"
repository = "https://github.com/endoli/humanize.rs"
edition = "2018"

[dependencies]
language-tags = "0.2.2"
7 changes: 4 additions & 3 deletions src/boolean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
//! * `"nope"`
//! * `"off"`
use language_tags::LanguageTag;
use super::parser::Parse;
use crate::Parse;
use language_tags::{langtag, LanguageTag};

impl Parse for bool {
fn parse(text: &str, language: &LanguageTag) -> Option<bool> {
Expand All @@ -45,7 +45,8 @@ impl Parse for bool {

#[cfg(test)]
mod tests {
use {parse, parse_with_language};
use crate::{parse, parse_with_language};
use language_tags::langtag;

#[test]
fn basic() {
Expand Down
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@
unsafe_code, unstable_features,
unused_import_braces, unused_qualifications)]

#[macro_use]
extern crate language_tags;

pub mod boolean;
mod parser;

pub use parser::{parse, parse_with_language, Parse};
pub use crate::parser::{parse, parse_with_language, Parse};

0 comments on commit da8a589

Please sign in to comment.