Skip to content

Commit 9b918ec

Browse files
committed
refactor: adjust clippy issues
1 parent 2fc52a5 commit 9b918ec

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/grid_engine.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,7 @@ impl GridEngine {
315315
) -> Result<&Node, GridEngineError> {
316316
let id = id.into();
317317
if self.items.contains_key(&id) {
318-
return Err(GridEngineError::Item(ItemError::ItemAlreadyExists {
319-
id: id,
320-
}));
318+
return Err(GridEngineError::Item(ItemError::ItemAlreadyExists { id }));
321319
};
322320

323321
let node = self.new_node(id, x, y, w, h);

0 commit comments

Comments
 (0)