Skip to content

Commit

Permalink
revert expect to unwrap + comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Nov 23, 2023
1 parent afd0f7e commit 4cc5c45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/op_def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ impl Extension {

match self.operations.entry(op.name.clone()) {
Entry::Occupied(_) => Err(ExtensionBuildError::OpDefExists(op.name)),
Entry::Vacant(ve) => Ok(Arc::get_mut(ve.insert(Arc::new(op)))
.expect("Just made the arc so should only be one reference to it, can get_mut")),
// Just made the arc so should only be one reference to it, can get_mut,
Entry::Vacant(ve) => Ok(Arc::get_mut(ve.insert(Arc::new(op))).unwrap()),
}
}
}
Expand Down

0 comments on commit 4cc5c45

Please sign in to comment.