Skip to content

Commit

Permalink
chore: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nouzan committed Nov 26, 2023
1 parent 05632bd commit b5374e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/indicator/src/context/layer/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ mod tests {
});
input.map(|_, ctx| ctx.env().get::<i32>().copied().unwrap())
})
.with(layer_fn(|op| Square(op)))
.with(layer_fn(Square))
.with(Cache::with_length(2.try_into().unwrap()))
.finish();

Expand Down
2 changes: 1 addition & 1 deletion crates/indicator_macros/src/operator/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ pub(super) fn get_type_under_reference(ty: &Type) -> Result<&Type> {
"expected reference type without lifetime and mutability, e.g. `&T`",
));
};
Ok(&*target_ty)
Ok(target_ty)
}

0 comments on commit b5374e3

Please sign in to comment.