This repository was archived by the owner on Dec 29, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ extern crate env_logger;
2
2
extern crate rls_analysis;
3
3
4
4
use rls_analysis:: { AnalysisHost , AnalysisLoader , SearchDirectory } ;
5
+ use std:: collections:: HashMap ;
5
6
use std:: env;
6
7
use std:: path:: { Path , PathBuf } ;
7
8
@@ -42,7 +43,7 @@ fn main() {
42
43
std:: process:: exit ( 1 ) ;
43
44
}
44
45
let loader = Loader :: new ( PathBuf :: from ( env:: args ( ) . nth ( 1 ) . unwrap ( ) ) ) ;
45
- let crates = rls_analysis:: read_analysis_from_files ( & loader, Default :: default ( ) , & [ ] ) ;
46
+ let crates = rls_analysis:: read_analysis_from_files ( & loader, HashMap :: new ( ) , & [ ] ) ;
46
47
47
48
for krate in & crates {
48
49
println ! ( "Crate {:?} data version {:?}" , krate. id, krate. analysis. version) ;
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ impl Crate {
50
50
51
51
/// Reads raw analysis data for non-blacklisted crates from files in directories
52
52
/// pointed by `loader`.
53
- pub fn read_analysis_from_files < L : AnalysisLoader , S : std:: hash:: BuildHasher > (
53
+ pub fn read_analysis_from_files < L : AnalysisLoader , S : std:: hash:: BuildHasher + Default > (
54
54
loader : & L ,
55
55
crate_timestamps : HashMap < PathBuf , SystemTime , S > ,
56
56
crate_blacklist : Blacklist ,
You can’t perform that action at this time.
0 commit comments