Skip to content

Commit

Permalink
Make RelativePath repr(transparent) and port to 2018 edition (fixes #12)
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Oct 10, 2019
1 parent 1bc970b commit 20d222a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ description = """
Portable, relative paths for Rust.
"""
readme = "README.md"
edition = "2018"

[features]
default = []
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ impl Hash for RelativePathBuf {
}

/// A borrowed, immutable relative path.
#[repr(transparent)]
pub struct RelativePath {
inner: str,
}
Expand Down

0 comments on commit 20d222a

Please sign in to comment.