@@ -76,10 +76,10 @@ struct OnDiskReport {
76
76
/// Unique reference to the report for the `--id` CLI flag.
77
77
id : u32 ,
78
78
/// Report, suitable for printing to the console.
79
- /// Maps crate names to the corresponding report
79
+ /// Maps package names to the corresponding report
80
80
/// We use a `BTreeMap` so that the iteration order
81
81
/// is stable across multiple runs of `cargo`
82
- per_crate : BTreeMap < String , String > ,
82
+ per_package : BTreeMap < String , String > ,
83
83
}
84
84
85
85
impl Default for OnDiskReports {
@@ -110,7 +110,7 @@ impl OnDiskReports {
110
110
} ;
111
111
let report = OnDiskReport {
112
112
id : current_reports. next_id ,
113
- per_crate : render_report ( per_package_reports) ,
113
+ per_package : render_report ( per_package_reports) ,
114
114
} ;
115
115
current_reports. next_id += 1 ;
116
116
current_reports. reports . push ( report) ;
@@ -194,21 +194,21 @@ impl OnDiskReports {
194
194
} ) ?;
195
195
let to_display = if let Some ( package) = package {
196
196
report
197
- . per_crate
197
+ . per_package
198
198
. get ( package)
199
199
. ok_or_else ( || {
200
200
format_err ! (
201
201
"could not find package with ID `{}`\n
202
202
Available packages are: {}\n
203
203
Omit the `--crate` flag to display a report for all crates" ,
204
204
package,
205
- iter_join( report. per_crate . keys( ) , ", " )
205
+ iter_join( report. per_package . keys( ) , ", " )
206
206
)
207
207
} ) ?
208
208
. clone ( )
209
209
} else {
210
210
report
211
- . per_crate
211
+ . per_package
212
212
. values ( )
213
213
. cloned ( )
214
214
. collect :: < Vec < _ > > ( )
0 commit comments