@@ -7,13 +7,7 @@ use std::{
77use cargo_metadata:: { Message , MetadataCommand } ;
88use clap:: { Args , CommandFactory , Parser , Subcommand } ;
99use espflash:: {
10- cli:: {
11- self , board_info, checksum_md5, completions, config:: Config , connect, erase_flash,
12- erase_partitions, erase_region, flash_elf_image, make_flash_data, monitor:: monitor,
13- partition_table, print_board_info, read_flash, save_elf_as_image, serial_monitor,
14- ChecksumMd5Args , CompletionsArgs , ConnectArgs , EraseFlashArgs , EraseRegionArgs ,
15- EspflashProgress , FlashConfigArgs , MonitorArgs , PartitionTableArgs , ReadFlashArgs ,
16- } ,
10+ cli:: { self , config:: Config , monitor:: monitor, * } ,
1711 error:: Error as EspflashError ,
1812 flasher:: parse_partition_table,
1913 logging:: initialize_logger,
@@ -305,8 +299,8 @@ fn flash(args: FlashArgs, config: &Config) -> Result<()> {
305299 ) ?;
306300 flasher. verify_minimum_revision ( args. flash_args . image . min_chip_rev ) ?;
307301
308- // If the user has provided a flash size via a command-line argument or config, we'll
309- // override the detected (or default) value with this.
302+ // If the user has provided a flash size via a command-line argument or config,
303+ // we'll override the detected (or default) value with this.
310304 if let Some ( flash_size) = args. build_args . flash_config_args . flash_size {
311305 flasher. set_flash_size ( flash_size) ;
312306 } else if let Some ( flash_size) = config. flash . size {
@@ -493,8 +487,8 @@ fn build(
493487 match message. into_diagnostic ( ) ? {
494488 Message :: BuildScriptExecuted ( script) => {
495489 // We can't use the `Index` implementation on `Metadata` because `-Zbuild-std`
496- // pulls in dependencies not listed in the metadata which then causes the `Index`
497- // implementation to panic.
490+ // pulls in dependencies not listed in the metadata which then causes the
491+ // `Index` implementation to panic.
498492 let Some ( package) = metadata. packages . iter ( ) . find ( |p| p. id == script. package_id )
499493 else {
500494 continue ;
0 commit comments