Skip to content

Commit

Permalink
Fix clippy lints for 1.76.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Feb 8, 2024
1 parent cdc3823 commit c560805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion candle-examples/examples/yolo-v3/darknet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ fn detect(
xs: &Tensor,
image_height: usize,
classes: usize,
anchors: &Vec<(usize, usize)>,
anchors: &[(usize, usize)],
) -> Result<Tensor> {
let (bsize, _channels, height, _width) = xs.dims4()?;
let stride = image_height / height;
Expand Down
2 changes: 1 addition & 1 deletion candle-nn/src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ fn set_at_index<D: WithDType, I: Into<i64>>(
value: I,
offset: usize,
depth: usize,
v: &mut Vec<D>,
v: &mut [D],
on_value: D,
) -> Result<()> {
let value = value.into();
Expand Down

0 comments on commit c560805

Please sign in to comment.