File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ impl<'a> CrateLoader<'a> {
207
207
let root = if let Some ( root) = root {
208
208
root
209
209
} else {
210
- crate_paths = CratePaths { name : crate_root. name , source : source . clone ( ) } ;
210
+ crate_paths = CratePaths :: new ( crate_root. name , source. clone ( ) ) ;
211
211
& crate_paths
212
212
} ;
213
213
Original file line number Diff line number Diff line change @@ -281,8 +281,14 @@ crate struct CrateLocator<'a> {
281
281
}
282
282
283
283
crate struct CratePaths {
284
- pub name : Symbol ,
285
- pub source : CrateSource ,
284
+ name : Symbol ,
285
+ source : CrateSource ,
286
+ }
287
+
288
+ impl CratePaths {
289
+ crate fn new ( name : Symbol , source : CrateSource ) -> CratePaths {
290
+ CratePaths { name, source }
291
+ }
286
292
}
287
293
288
294
#[ derive( Copy , Clone , PartialEq ) ]
You can’t perform that action at this time.
0 commit comments