diff --git a/file_store/src/cli/bucket.rs b/file_store/src/cli/bucket.rs index 11bc3ebc5..99f0e98c6 100644 --- a/file_store/src/cli/bucket.rs +++ b/file_store/src/cli/bucket.rs @@ -214,9 +214,9 @@ fn locate(prefix: &str, gateway: &PublicKey, buf: &[u8]) -> Result { ValidatedHeartbeat::decode(buf).and_then(|event| event.to_value_if(pub_key)) } - FileType::SpeedtestAvg => SpeedtestAverage::decode(buf) - .map_err(Error::from) - .and_then(|event| event.to_value_if(pub_key)), + FileType::SpeedtestAvg => { + SpeedtestAverage::decode(buf).and_then(|event| event.to_value_if(pub_key)) + } FileType::CellSpeedtest => { CellSpeedtest::decode(buf).and_then(|event| event.to_value_if(pub_key)) }