mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-21 12:12:13 +00:00
Replace unwrap with expect
This commit is contained in:
parent
d9d8f761f1
commit
b6ba5cf4f1
@ -151,13 +151,13 @@ fn first_pass_operation<'src>(
|
|||||||
&mut record
|
&mut record
|
||||||
.mixins
|
.mixins
|
||||||
.get_mut(self_name)
|
.get_mut(self_name)
|
||||||
.unwrap()
|
.expect(&format!("not found {} mixin", self_name))
|
||||||
.operations
|
.operations
|
||||||
} else {
|
} else {
|
||||||
&mut record
|
&mut record
|
||||||
.interfaces
|
.interfaces
|
||||||
.get_mut(self_name)
|
.get_mut(self_name)
|
||||||
.unwrap()
|
.expect(&format!("not found {} interface", self_name))
|
||||||
.operations
|
.operations
|
||||||
}
|
}
|
||||||
.entry(id)
|
.entry(id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user