Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions xbuild/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,17 +167,18 @@ impl std::fmt::Display for Format {
impl std::str::FromStr for Format {
type Err = anyhow::Error;

fn from_str(arch: &str) -> Result<Self> {
Ok(match arch {
fn from_str(format: &str) -> Result<Self> {
Ok(match format {
"aab" => Self::Aab,
"apk" => Self::Apk,
"appbundle" => Self::Appbundle,
"appdir" => Self::Appdir,
"appimage" => Self::Appimage,
"dmg" => Self::Dmg,
"exe" => Self::Exe,
"ipa" => Self::Ipa,
"msix" => Self::Msix,
_ => anyhow::bail!("unsupported arch {}", arch),
_ => anyhow::bail!("unsupported format {}", format),
})
}
}
Expand Down
Loading