Skip to content

Commit c189e6a

Browse files
author
Phil Cummins
committed
reformatting
1 parent b9ac47d commit c189e6a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ pub async fn componentize(
234234
library_path.push((*path, libraries));
235235
}
236236

237-
let mut libraries = prelink::bundle_libraries(library_path).unwrap();
237+
let mut libraries = prelink::bundle_libraries(library_path)?;
238238

239239
// Validate the paths parsed from any componentize-py.toml files discovered above and match them up with
240240
// `module_worlds` entries. Note that we use an `IndexMap` to preserve the order specified in `module_worlds`,

src/prelink.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ fn library_from_so(library_name: &str) -> Result<Library, io::Error> {
8181
let filepath = path + "/" + library_name + ".zst";
8282
let bytes = fs::read(filepath)?;
8383

84-
return Ok(Library {
84+
Ok(Library {
8585
name: library_name.into(),
8686
module: zstd::decode_all(Cursor::new(bytes))?,
8787
dl_openable: false,
88-
});
88+
})
8989
}

0 commit comments

Comments
 (0)