Skip to content

Commit

Permalink
convert to 2018 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
abonander committed May 29, 2019
1 parent f4ed9a0 commit 9ff66ab
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 18 deletions.
1 change: 1 addition & 0 deletions phf/Cargo.toml
Expand Up @@ -5,6 +5,7 @@ version = "0.7.24"
license = "MIT"
description = "Runtime support for perfect hash function data structures"
repository = "https://github.com/sfackler/rust-phf"
edition = "2018"

[lib]
name = "phf"
Expand Down
12 changes: 4 additions & 8 deletions phf/src/lib.rs
Expand Up @@ -44,24 +44,20 @@
#[cfg(not(feature = "core"))]
extern crate std as core;

extern crate phf_shared;
#[cfg(feature = "macros")]
extern crate phf_macros;

#[cfg(feature = "macros")]
pub use phf_macros::*;

use core::ops::Deref;

pub use phf_shared::PhfHash;
#[doc(inline)]
pub use map::Map;
pub use self::map::Map;
#[doc(inline)]
pub use set::Set;
pub use self::set::Set;
#[doc(inline)]
pub use ordered_map::OrderedMap;
pub use self::ordered_map::OrderedMap;
#[doc(inline)]
pub use ordered_set::OrderedSet;
pub use self::ordered_set::OrderedSet;

pub mod map;
pub mod set;
Expand Down
2 changes: 1 addition & 1 deletion phf/src/map.rs
Expand Up @@ -5,7 +5,7 @@ use core::slice;
use core::fmt;
use core::iter::IntoIterator;
use phf_shared::{self, PhfHash};
use Slice;
use crate::Slice;

/// An immutable map constructed at compile time.
///
Expand Down
2 changes: 1 addition & 1 deletion phf/src/ordered_map.rs
Expand Up @@ -6,7 +6,7 @@ use core::fmt;
use core::slice;
use phf_shared::{self, PhfHash};

use Slice;
use crate::Slice;

/// An order-preserving immutable map constructed at compile time.
///
Expand Down
3 changes: 1 addition & 2 deletions phf/src/ordered_set.rs
Expand Up @@ -2,8 +2,7 @@
use core::borrow::Borrow;
use core::iter::IntoIterator;
use core::fmt;
use ordered_map;
use {PhfHash, OrderedMap};
use crate::{ordered_map, PhfHash, OrderedMap};

/// An order-preserving immutable set constructed at compile time.
///
Expand Down
4 changes: 1 addition & 3 deletions phf/src/set.rs
Expand Up @@ -3,9 +3,7 @@ use core::borrow::Borrow;
use core::iter::IntoIterator;
use core::fmt;

use PhfHash;
use map;
use Map;
use crate::{map, Map, PhfHash};

/// An immutable set constructed at compile time.
///
Expand Down
1 change: 1 addition & 0 deletions phf_codegen/test/Cargo.toml
Expand Up @@ -3,6 +3,7 @@ name = "phf_codegen_test"
authors = ["Steven Fackler <sfackler@gmail.com>"]
version = "0.0.0"
build = "build.rs"
edition = "2018"

[dependencies]
unicase = "2.4.0"
Expand Down
3 changes: 0 additions & 3 deletions phf_codegen/test/src/lib.rs
@@ -1,6 +1,3 @@
extern crate phf;
extern crate unicase;

#[cfg(test)]
mod test {
use unicase::UniCase;
Expand Down
1 change: 1 addition & 0 deletions phf_generator/Cargo.toml
Expand Up @@ -5,6 +5,7 @@ version = "0.7.24"
license = "MIT"
description = "PHF generation logic"
repository = "https://github.com/sfackler/rust-phf"
edition = "2018"

[dependencies]
rand = "0.6"
Expand Down
1 change: 1 addition & 0 deletions phf_shared/Cargo.toml
Expand Up @@ -5,6 +5,7 @@ version = "0.7.24"
license = "MIT"
description = "Support code shared by PHF libraries"
repository = "https://github.com/sfackler/rust-phf"
edition = "2018"

[lib]
name = "phf_shared"
Expand Down

0 comments on commit 9ff66ab

Please sign in to comment.