Skip to content

Commit

Permalink
review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Nov 8, 2023
1 parent 64e11f7 commit 31bf803
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hugr/hugrmut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ pub trait HugrMut: HugrMutInternals {
key: impl AsRef<str>,
metadata: impl Into<NodeMetadata>,
) -> Result<(), HugrError> {
*self.get_metadata_mut(node, key)? = metadata.into();
let entry = self.get_metadata_mut(node, key)?;
*entry = metadata.into();
Ok(())
}

Expand Down

0 comments on commit 31bf803

Please sign in to comment.