mirror of
https://github.com/hannobraun/Fornjot
synced 2025-03-09 14:42:18 +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
|
||||
// might be sound?
|
||||
unsafe {
|
||||
validate_model(export_file_path_str).with_context(|| {
|
||||
format!("Could not validate model `{model}`")
|
||||
})?;
|
||||
}
|
||||
unsafe { validate_model(export_file_path_str) }
|
||||
.with_context(|| format!("Could not validate model `{model}`"))?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user