Skip to content

Commit

Permalink
Merge pull request #935 from hash-org/fix-clippy
Browse files Browse the repository at this point in the history
chore: fix `implied_bounds_in_impls` clippy suggestions
  • Loading branch information
feds01 authored Aug 31, 2023
2 parents ec58306 + 260a8da commit 6fc1634
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions compiler/hash-ir/src/ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1343,14 +1343,14 @@ impl Body {

/// Returns an iterator over all function arguments.
#[inline]
pub fn args_iter(&self) -> impl Iterator<Item = Local> + ExactSizeIterator {
pub fn args_iter(&self) -> impl ExactSizeIterator<Item = Local> {
(1..self.arg_count + 1).map(Local::new)
}

/// Returns an iterator over all variables and temporaries. This
/// excludes the return place and function arguments.
#[inline]
pub fn vars_iter(&self) -> impl Iterator<Item = Local> + ExactSizeIterator {
pub fn vars_iter(&self) -> impl ExactSizeIterator<Item = Local> {
(self.arg_count + 1..self.declarations.len()).map(Local::new)
}

Expand Down
2 changes: 1 addition & 1 deletion compiler/hash-utils/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl<T: fmt::Debug> HeavyState<T> {
}

/// Get a mutable reference to the current value of the state.
pub fn get_mut(&self) -> impl Deref<Target = T> + DerefMut + '_ {
pub fn get_mut(&self) -> impl DerefMut<Target = T> + '_ {
self.current.borrow_mut()
}

Expand Down

0 comments on commit 6fc1634

Please sign in to comment.