Skip to content

Commit

Permalink
fix: add must_use
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnevadoc committed Sep 12, 2024
1 parent d087b08 commit 8f06428
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ff_ext/cubic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub struct CubicExtField<F: ff::Field> {
pub trait CubicSparseMul {
type Base: ExtField;

#[must_use]
fn mul_by_1(lhs: &CubicExtField<Self::Base>, c1: &Self::Base) -> CubicExtField<Self::Base> {
let b_b = lhs.c1 * c1;

Expand All @@ -24,6 +25,7 @@ pub trait CubicSparseMul {
}
}

#[must_use]
fn mul_by_01(
lhs: &CubicExtField<Self::Base>,
c0: &Self::Base,
Expand Down

0 comments on commit 8f06428

Please sign in to comment.