Replace unwrap with expect

This commit is contained in:
Anton Danilkin 2018-08-10 00:55:27 +03:00
parent d9d8f761f1
commit b6ba5cf4f1

View File

@ -151,13 +151,13 @@ fn first_pass_operation<'src>(
&mut record
.mixins
.get_mut(self_name)
.unwrap()
.expect(&format!("not found {} mixin", self_name))
.operations
} else {
&mut record
.interfaces
.get_mut(self_name)
.unwrap()
.expect(&format!("not found {} interface", self_name))
.operations
}
.entry(id)