mirror of
https://github.com/huggingface/candle.git
synced 2025-06-15 02:16:37 +00:00
Lint fixes introduced with Rust 1.83 (#2646)
* Fixes for lint errors introduced with Rust 1.83 * rustfmt * Fix more lints. --------- Co-authored-by: Laurent <laurent.mazare@gmail.com>
This commit is contained in:

committed by
GitHub

parent
23ed8a9ded
commit
54e7fc3c97
@ -276,7 +276,7 @@ impl PyTensor {
|
||||
/// &RETURNS&: _ArrayLike
|
||||
fn values(&self, py: Python<'_>) -> PyResult<PyObject> {
|
||||
struct M<'a>(Python<'a>);
|
||||
impl<'a> MapDType for M<'a> {
|
||||
impl MapDType for M<'_> {
|
||||
type Output = PyObject;
|
||||
fn f<T: PyWithDType>(&self, t: &Tensor) -> PyResult<Self::Output> {
|
||||
match t.rank() {
|
||||
|
Reference in New Issue
Block a user