Skip to content

Commit

Permalink
feat: add dead code (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
tshauck authored May 2, 2024
1 parent d9b7eaa commit 62eeea1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exon/exon-mzml/src/mzml_reader/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ impl Error for MissingCompressionError {}

type CVVector = Vec<CVParam>;

#[allow(dead_code)]
trait CVVectorMethods {}

impl CVVectorMethods for CVVector {}
Expand Down Expand Up @@ -314,6 +315,7 @@ type DecodeArrayError = &'static str;
type DecodedArrayResult<T> = Result<T, DecodeArrayError>;

pub trait DecodedArray {
#[allow(dead_code)]
fn decode_array(&self, i: usize) -> DecodedArrayResult<Vec<f64>> {
let de = self.decompress_binary_string(i).unwrap();
let decoded = base64::engine::general_purpose::STANDARD.decode(de);
Expand All @@ -331,6 +333,7 @@ pub trait DecodedArray {
Err("error")
}

#[allow(dead_code)]
fn decompress_binary_string(&self, i: usize) -> std::io::Result<&String>;
}

Expand Down

0 comments on commit 62eeea1

Please sign in to comment.