Skip to content

Commit 6542405

Browse files
authored
Fix type in ImageFormatKind's FromStr implementation (#308)
1 parent b25af06 commit 6542405

File tree

1 file changed

+1
-1
lines changed
  • espflash/src/image_format

1 file changed

+1
-1
lines changed

espflash/src/image_format/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl FromStr for ImageFormatKind {
8282

8383
fn from_str(s: &str) -> Result<Self, Self::Err> {
8484
match s {
85-
"bootloader" => Ok(Self::EspBootloader),
85+
"esp-bootloader" => Ok(Self::EspBootloader),
8686
"direct-boot" => Ok(Self::DirectBoot),
8787
_ => Err(Error::UnknownImageFormat(s.into())),
8888
}

0 commit comments

Comments
 (0)