fix clippy (#955)

This commit is contained in:
Louis Fortier-Dubois 2023-11-13 15:30:07 -05:00 committed by GitHub
parent cb4c23b39d
commit 4d63a24e19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {