Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q committed Jun 14, 2024
1 parent ab26584 commit 60585e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/emit/ops/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl<'c, H: HugrView> EmitOp<'c, DataflowBlock, H> for CfgEmitter<'c, '_, H> {
// the basic block and mailbox of each of our successors
let successor_data = node
.output_neighbours()
.map(|succ| self.get_block_data(&succ).map(|x| x.clone()))
.map(|succ| self.get_block_data(&succ).cloned())
.collect::<Result<Vec<_>>>()?;

self.context.build_positioned(*bb, |context| {
Expand Down
2 changes: 1 addition & 1 deletion src/emit/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ impl SimpleHugrConfig {
#[macro_export]
macro_rules! check_emission {
($hugr: ident, $test_ctx:ident) => {
let root = crate::fat::FatExt::fat_root::<hugr::ops::Module>(&$hugr).unwrap();
let root = $crate::fat::FatExt::fat_root::<hugr::ops::Module>(&$hugr).unwrap();
let (_, module) = $test_ctx.with_emit_context(|ec| ((), ec.emit_module(root).unwrap()));

let mut settings = insta::Settings::clone_current();
Expand Down

0 comments on commit 60585e0

Please sign in to comment.