Skip to content

Commit

Permalink
Convert use's to anchored_use_paths
Browse files Browse the repository at this point in the history
This commit specifies a few modules in use statements with the `self::` prefix.
This commit is motivated by the fact that the current Rust 2018 default is
`anchored_use_paths`, not `uniform_paths`.
  • Loading branch information
name authored and bnjbvr committed Mar 19, 2019
1 parent 388c7d9 commit 3349828
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mod parse_error {
}
}

use triple::{Endianness, PointerWidth, Triple};
use self::triple::{Endianness, PointerWidth, Triple};

/// Assuming `target` is a path to a custom target json config file, open it
/// and build a `Triple` using its contents.
Expand Down
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mod targets;
#[macro_use]
mod triple;

pub use host::HOST;
pub use parse_error::ParseError;
pub use targets::{Architecture, BinaryFormat, Environment, OperatingSystem, Vendor};
pub use triple::{CallingConvention, Endianness, PointerWidth, Triple};
pub use self::host::HOST;
pub use self::parse_error::ParseError;
pub use self::targets::{Architecture, BinaryFormat, Environment, OperatingSystem, Vendor};
pub use self::triple::{CallingConvention, Endianness, PointerWidth, Triple};

0 comments on commit 3349828

Please sign in to comment.