Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

Commit 0b9dbe5

Browse files
committed
Use PathBufs in CrateSource paths
1 parent 6afc510 commit 0b9dbe5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lib.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,13 @@ pub struct GlobalCrateId {
107107
/// must be non-None.
108108
///
109109
/// Mimicks CrateSource from src/librustc/middle/cstore.rs (only paths)
110-
/// TODO: Uses String to be easily debuggable, change to PathBuf
111110
#[cfg_attr(feature = "serialize-serde", derive(Serialize, Deserialize))]
112111
#[cfg_attr(feature = "serialize-rustc", derive(RustcDecodable, RustcEncodable))]
113112
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
114113
pub struct CrateSource {
115-
pub dylib: Option<String>,
116-
pub rlib: Option<String>,
117-
pub rmeta: Option<String>,
114+
pub dylib: Option<PathBuf>,
115+
pub rlib: Option<PathBuf>,
116+
pub rmeta: Option<PathBuf>,
118117
}
119118

120119
#[cfg_attr(feature = "serialize-serde", derive(Serialize, Deserialize))]

0 commit comments

Comments
 (0)