mirror of
https://github.com/hannobraun/Fornjot
synced 2025-03-09 22:52:21 +00:00
Minimize scope of unsafe
block
This commit is contained in:
parent
8dc0d5034f
commit
d3522e32ae
@ -33,11 +33,8 @@ fn main() -> anyhow::Result<()> {
|
|||||||
|
|
||||||
// Presumably we're using the library in the way it's intended, so this
|
// Presumably we're using the library in the way it's intended, so this
|
||||||
// might be sound?
|
// might be sound?
|
||||||
unsafe {
|
unsafe { validate_model(export_file_path_str) }
|
||||||
validate_model(export_file_path_str).with_context(|| {
|
.with_context(|| format!("Could not validate model `{model}`"))?;
|
||||||
format!("Could not validate model `{model}`")
|
|
||||||
})?;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user