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> {
207207 let root = if let Some ( root) = root {
208208 root
209209 } else {
210- crate_paths = CratePaths { name : crate_root. name , source : source . clone ( ) } ;
210+ crate_paths = CratePaths :: new ( crate_root. name , source. clone ( ) ) ;
211211 & crate_paths
212212 } ;
213213
Original file line number Diff line number Diff line change @@ -281,8 +281,14 @@ crate struct CrateLocator<'a> {
281281}
282282
283283crate 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+ }
286292}
287293
288294#[ derive( Copy , Clone , PartialEq ) ]
You can’t perform that action at this time.
0 commit comments