Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
CallMeMSL committed Jan 31, 2024
1 parent c83420d commit 560aa51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyo3-tch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ mod tests {
.eval(
"torch.is_tensor(tensor)",
None,
Some(&[("tensor", py_obj), ("torch", module)].into_py_dict(py))
Some([("tensor", py_obj), ("torch", module)].into_py_dict(py))
)
.unwrap()
.extract::<bool>()
Expand All @@ -78,7 +78,7 @@ mod tests {
.eval(
"torch.tensor([3, 1, 4, 1, 5])",
None,
Some(&[("torch", module)].into_py_dict(py)),
Some([("torch", module)].into_py_dict(py)),
)
.unwrap();
let py_tensor = PyTensor::extract(py_obj).unwrap();
Expand Down

0 comments on commit 560aa51

Please sign in to comment.