From b6ba5cf4f19e21b83a58d793017eed8f34ff807e Mon Sep 17 00:00:00 2001 From: Anton Danilkin Date: Fri, 10 Aug 2018 00:55:27 +0300 Subject: [PATCH] Replace unwrap with expect --- crates/webidl/src/first_pass.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/webidl/src/first_pass.rs b/crates/webidl/src/first_pass.rs index 19816707..8aa677df 100644 --- a/crates/webidl/src/first_pass.rs +++ b/crates/webidl/src/first_pass.rs @@ -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)