@@ -780,10 +780,9 @@ fn main() -> Result<()> {
780
780
Command :: create ( matches, & build_info)
781
781
} else if let Some ( matches) = cmd. subcommand_matches ( "chunkdict" ) {
782
782
match matches. subcommand_name ( ) {
783
- Some ( "generate" ) => Command :: chunkdict_generate (
784
- matches. subcommand_matches ( "generate" ) . unwrap ( ) ,
785
- & build_info,
786
- ) ,
783
+ Some ( "generate" ) => {
784
+ Command :: chunkdict_generate ( matches. subcommand_matches ( "generate" ) . unwrap ( ) )
785
+ }
787
786
_ => {
788
787
println ! ( "{}" , usage) ;
789
788
Ok ( ( ) )
@@ -1202,7 +1201,7 @@ impl Command {
1202
1201
OutputSerializer :: dump ( matches, build_output, build_info, compressor, version)
1203
1202
}
1204
1203
1205
- fn chunkdict_generate ( matches : & ArgMatches , build_info : & BuildTimeInfo ) -> Result < ( ) > {
1204
+ fn chunkdict_generate ( matches : & ArgMatches ) -> Result < ( ) > {
1206
1205
let mut build_ctx = BuildContext {
1207
1206
prefetch : Self :: get_prefetch ( matches) ?,
1208
1207
..Default :: default ( )
@@ -1337,14 +1336,14 @@ impl Command {
1337
1336
let bootstrap_path = Self :: get_bootstrap_storage ( matches) ?;
1338
1337
let mut bootstrap_mgr = BootstrapManager :: new ( Some ( bootstrap_path) , None ) ;
1339
1338
1340
- let output = Generator :: generate (
1339
+ Generator :: generate (
1341
1340
& mut build_ctx,
1342
1341
& mut bootstrap_mgr,
1343
1342
& mut blob_mgr,
1344
1343
chunkdict_chunks,
1345
1344
chunkdict_blobs,
1346
1345
) ?;
1347
- OutputSerializer :: dump ( matches, output, build_info) . unwrap ( ) ;
1346
+ // OutputSerializer::dump(matches, output, build_info).unwrap();
1348
1347
info ! (
1349
1348
"Chunkdict metadata is saved at: {:?}" ,
1350
1349
matches
0 commit comments