diff options
| author | Henry <mail@henrygressmann.de> | 2026-07-22 21:28:35 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-07-22 21:28:35 +0200 |
| commit | b484f2bc074dab2419245ec2443f60efd33b80f0 (patch) | |
| tree | 04c5a7ee1391b3ccb7fa836acc9eb3bf774c1088 /crates/cli/src/load.rs | |
| parent | 1d754813f178fc92afffe43e3ab638ddfc03cb66 (diff) | |
chore: update deps, fix clippy warnings, add wast ModuleDefinition
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/cli/src/load.rs')
| -rw-r--r-- | crates/cli/src/load.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/cli/src/load.rs b/crates/cli/src/load.rs index d16469b..7e6fc09 100644 --- a/crates/cli/src/load.rs +++ b/crates/cli/src/load.rs @@ -25,14 +25,14 @@ pub fn load_module(input: &str) -> Result<LoadedModule> { pub fn load_compilable_module(input: &str) -> Result<Module> { let loaded = load_module(input)?; if loaded.format == InputFormat::Twasm { - bail!("input is already a twasm archive; use `run`, `dump`, or `inspect` instead") + bail!("input is already a twasm archive; use `run`, `dump`, or `inspect` instead"); } Ok(loaded.module) } pub fn default_twasm_output_path(input: &str) -> Result<String> { if input == "-" { - bail!("--output is required when compiling from stdin") + bail!("--output is required when compiling from stdin"); } let path = Path::new(input); @@ -50,7 +50,7 @@ pub fn write_output_bytes(output: &str, bytes: &[u8], force: bool) -> Result<()> let path = Path::new(output); if path.exists() && !force { - bail!("output file already exists: {output}; pass --force to overwrite") + bail!("output file already exists: {output}; pass --force to overwrite"); } std::fs::write(path, bytes).with_context(|| format!("failed to write output file `{output}`"))?; |
