Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Serena committed Nov 15, 2024
1 parent f660d74 commit 46b7bef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions interp/src/debugger/debugger_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ use crate::{
errors::{InterpreterError, InterpreterResult},
flatten::{
flat_ir::{
base::{ComponentIdx, GlobalCellIdx, PortValue},
base::{GlobalCellIdx, PortValue},
prelude::GroupIdx,
},
setup_simulation_with_metadata,
structures::{
context::Context,
environment::{Path as ParsePath, PathError, Simulator},
index_trait::IndexRef,
},
},
serialization::PrintCode,
Expand Down
4 changes: 2 additions & 2 deletions interp/src/flatten/structures/environment/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ use ahash::{HashMap, HashMapExt};
use itertools::Itertools;
use owo_colors::OwoColorize;
use slog::warn;
use std::fmt::Debug;
use std::fmt::Write;
use std::{borrow::Borrow, fmt::Debug};

pub type PortMap = IndexedMap<GlobalPortIdx, PortValue>;

Expand Down Expand Up @@ -303,7 +303,7 @@ impl<C: AsRef<Context> + Clone> Environment<C> {
let idx = &ledger.index_bases + x;
(idx.get_full_name(self), self.ports_helper(idx))
});
return cells;
cells

Check failure on line 306 in interp/src/flatten/structures/environment/env.rs

View workflow job for this annotation

GitHub Actions / Check Formatting

returning the result of a `let` binding from a block
}

/// Returns the full name and port list of each cell in the context
Expand Down

0 comments on commit 46b7bef

Please sign in to comment.