Skip to content

Commit d8508e5

Browse files
shut-up warnings about dead code
1 parent c20ba55 commit d8508e5

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

src/array2d.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// SPDX-License-Identifier: LGPL-2.1-or-later
22
// See Notices.txt for copyright information
33

4+
// FIXME: remove when module made public again
5+
#![allow(dead_code)]
6+
47
use std::borrow::Borrow;
58
use std::borrow::BorrowMut;
69
use std::fmt;

src/interval_arithmetic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,7 @@ impl DyadicFractionInterval {
567567
Self::from_int(2i32.into(), log2_denom).into_sqrt()
568568
})
569569
}
570+
#[allow(dead_code)] // FIXME: remove when implemented
570571
pub(crate) fn pi(log2_denom: usize) -> Self {
571572
lazy_static! {
572573
static ref CACHE: ConstantCache = ConstantCache::new();

src/lattice.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// SPDX-License-Identifier: LGPL-2.1-or-later
22
// See Notices.txt for copyright information
33

4+
// FIXME: remove when module made public again
5+
#![allow(dead_code)]
6+
47
use crate::array2d::Array2DOwned;
58
use crate::array2d::Array2DSlice;
69
use num_integer::Integer;

src/quadratic_numbers.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// SPDX-License-Identifier: LGPL-2.1-or-later
22
// See Notices.txt for copyright information
33

4+
// FIXME: remove when module made public again
5+
#![allow(dead_code)]
6+
47
use crate::polynomial::Polynomial;
58
use crate::polynomial::PolynomialCoefficient;
69
use crate::traits::GCD;
@@ -432,7 +435,7 @@ impl RealQuadraticNumber {
432435
self.clone(),
433436
));
434437
}
435-
let sqrts_sum_diff = add_sub_sqrts(
438+
let _sqrts_sum_diff = add_sub_sqrts(
436439
self.poly.discriminant() * rhs.quadratic_term().abs() * 2,
437440
rhs.poly.discriminant() * self.quadratic_term().abs() * 2,
438441
)?;
@@ -450,13 +453,13 @@ impl RealQuadraticNumber {
450453
}
451454
unimplemented!()
452455
}
453-
pub(crate) fn checked_rem(&self, rhs: &Self) -> Result<Self, NonQuadraticResult> {
456+
pub(crate) fn checked_rem(&self, _rhs: &Self) -> Result<Self, NonQuadraticResult> {
454457
unimplemented!()
455458
}
456-
pub(crate) fn checked_mul(&self, rhs: &Self) -> Result<Self, NonQuadraticResult> {
459+
pub(crate) fn checked_mul(&self, _rhs: &Self) -> Result<Self, NonQuadraticResult> {
457460
unimplemented!()
458461
}
459-
pub(crate) fn checked_div(&self, rhs: &Self) -> Result<Self, NonQuadraticResult> {
462+
pub(crate) fn checked_div(&self, _rhs: &Self) -> Result<Self, NonQuadraticResult> {
460463
unimplemented!()
461464
}
462465
pub(crate) fn to_f64(&self) -> Option<f64> {
@@ -490,7 +493,7 @@ pub(crate) struct FromStrRadixError;
490493

491494
impl Num for RealQuadraticNumber {
492495
type FromStrRadixErr = FromStrRadixError;
493-
fn from_str_radix(str: &str, radix: u32) -> Result<Self, FromStrRadixError> {
496+
fn from_str_radix(_str: &str, _radix: u32) -> Result<Self, FromStrRadixError> {
494497
unimplemented!()
495498
}
496499
}

0 commit comments

Comments
 (0)