Skip to content

Commit

Permalink
Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli committed Mar 25, 2024
1 parent dad0353 commit 9eb4046
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vir/defs/polymorphic/ast/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ impl Expr {
Expr::not(Expr::eq_cmp(left, right))
}

#[allow(clippy::should_implement_trait)]
/// Encode Rust's division. This is *not* Viper's division.
pub fn div(left: Expr, right: Expr) -> Self {
Expr::ite(
Expand All @@ -329,6 +330,7 @@ impl Expr {
)
}

#[allow(clippy::should_implement_trait)]
/// Encode Rust's signed reminder. This is *not* Viper's modulo.
pub fn rem(left: Expr, right: Expr) -> Self {
let abs_right = Expr::ite(
Expand Down

0 comments on commit 9eb4046

Please sign in to comment.