Skip to content

Commit 0a579c4

Browse files
chore: fix linting
1 parent 85afa65 commit 0a579c4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/utils.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,12 @@ pub fn module_to_component(wasm_file: &PathBuf, adapt_file: &Option<PathBuf>) ->
8383
let mut encoder = wit_component::ComponentEncoder::default().validate(true);
8484
encoder = encoder.module(&wasm)?;
8585
let adapt_bytes = if let Some(adapt) = adapt_file {
86-
std::fs::read(adapt)
87-
.context(format!("failed to read adapt file '{}'", adapt.display()))?
86+
std::fs::read(adapt).context(format!("failed to read adapt file '{}'", adapt.display()))?
8887
} else {
8988
WASIP1_SNAPSHOT_ADAPT.to_vec()
9089
};
9190
encoder = encoder.adapter("wasi_snapshot_preview1", &adapt_bytes)?;
9291

93-
9492
let bytes = encoder
9593
.encode()
9694
.context("failed to encode component from module")?;

0 commit comments

Comments
 (0)