Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Oct 23, 2023
1 parent 0fb193c commit f12a3aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ impl Parameters {
m.analyse(!matches.is_present("analyse-fail-fast")).map_err(|e|
ModelBuildingError(Box::new(m.clone()), e.into())
)?;
if let Some(fail) = m.missing_type_shape()?.iter().next() {
if let Some(fail) = m.missing_type_shape()?.first() {
bail!(ModelBuildingError(Box::new(m.clone()), format!("{} has incomplete typing", m.node(fail.node)).into()))
}
Ok(m)
Expand Down
2 changes: 1 addition & 1 deletion core/src/ops/array/gather.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl Gather {
let indices = indices.cast_to::<i64>()?;
let indices = indices.to_array_view::<i64>()?;
let output_shape = &*self.compute_output_shape(data.shape(), indices.shape())?;
let mut output = Tensor::uninitialized::<T>(&output_shape)?;
let mut output = Tensor::uninitialized::<T>(output_shape)?;
let mut output_view = output.to_array_view_mut::<T>()?;
for coords in tract_ndarray::indices(output_shape) {
let ocoords = coords.as_array_view();
Expand Down

0 comments on commit f12a3aa

Please sign in to comment.