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 46b7bef commit 513f145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cider-dap/src/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ impl MyAdapter {
pub fn get_scopes(&mut self, frame: i64) -> Vec<Scope> {
let mut out_vec = vec![];
let component = self.frames_to_cmpts.get(&frame).unwrap();
let cell_names = self.debugger.get_comp_cells(component.clone());
let cell_names = self.debugger.get_comp_cells(*component);
let mut var_ref_count = 1;
for (name, ports) in cell_names {
self.object_references.insert(var_ref_count, ports);
Expand Down
5 changes: 2 additions & 3 deletions interp/src/flatten/structures/environment/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,10 @@ impl<C: AsRef<Context> + Clone> Environment<C> {
let cells_keys = self.ctx().secondary.comp_aux_info[ledger.comp_id]
.cell_offset_map
.keys();
let cells = cells_keys.map(|x| {
cells_keys.map(|x| {
let idx = &ledger.index_bases + x;
(idx.get_full_name(self), self.ports_helper(idx))
});
cells
})
}

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

0 comments on commit 513f145

Please sign in to comment.