mirror of https://github.com/tracel-ai/burn.git
fix clippy (#955)
This commit is contained in:
parent
cb4c23b39d
commit
4d63a24e19
|
@ -43,7 +43,7 @@ impl<B: FusionBackend> HandleContainer<B> {
|
|||
let (id, handle) = self
|
||||
.handles
|
||||
.remove_entry(&tensor.id)
|
||||
.expect(&format!("Should have handle for tensor {:?}", tensor.id));
|
||||
.unwrap_or_else(|| panic!("Should have handle for tensor {:?}", tensor.id));
|
||||
|
||||
if let Handle::Existing(handle) = handle {
|
||||
match tensor.status {
|
||||
|
|
Loading…
Reference in New Issue