Skip to content

Commit d2c5013

Browse files
authored
Update src/parse_mzdata.rs
1 parent 11bdb48 commit d2c5013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse_mzdata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn get_charge_from_spectrum(spectrum: &mzdata::spectrum::MultiLayerSpectrum) ->
7777
.precursor
7878
.as_ref()
7979
.and_then(|p| p.ions.first())
80-
.and_then(|i| i.charge.map(|c| c.abs() as usize))
80+
.and_then(|i| i.charge.map(|c| c.unsigned_abs() as usize))
8181
.or_else(|| {
8282
spectrum
8383
.description

0 commit comments

Comments
 (0)