Skip to content

Commit

Permalink
Fixing clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
coreylowman committed Aug 10, 2023
1 parent 113e763 commit 3e50216
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tensor/tensorlike.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use super::{storage_traits::AllocGrad, GhostTensor, Tensor, UniqueId};
/// exists to unify handling of [Tensor] and [GhostTensor].

Check warning on line 10 in src/tensor/tensorlike.rs

View workflow job for this annotation

GitHub Actions / cargo-check

public documentation for `Tensorlike` links to private item `GhostTensor`

Check warning on line 10 in src/tensor/tensorlike.rs

View workflow job for this annotation

GitHub Actions / cargo-check

public documentation for `Tensorlike` links to private item `GhostTensor`
///
/// *If it looks like a tensor and barks like a tensor, then pet it like a tensor.*
#[allow(clippy::len_without_is_empty)]
pub trait Tensorlike<S: Shape, E, D: Storage<E>>:
AllocGrad<Gradient = D::Vec> + HasErr<Err = D::Err> + HasShape<Shape = S>
{
Expand Down

0 comments on commit 3e50216

Please sign in to comment.