chore: Remove or change scope for outdated dead_code allows

pull/24376/head
Carol (Nichols || Goulding) 2020-06-15 14:34:02 -04:00
parent 2768b15bf4
commit f2fc4a6d43
3 changed files with 0 additions and 6 deletions

View File

@ -19,7 +19,6 @@ fn is_sentinel_u64(v: u64, sentinel: u64) -> bool {
/// paper. Each subsequent value is compared to the previous and the XOR of the
/// two is determined. Leading and trailing zero bits are then analysed and
/// representations based on those are stored.
#[allow(dead_code)]
#[allow(clippy::many_single_char_names)]
pub fn encode(src: &[f64], dst: &mut Vec<u8>) -> Result<(), Box<dyn Error>> {
dst.truncate(0); // reset buffer.
@ -331,7 +330,6 @@ pub fn decode_influxdb(src: &[u8], dst: &mut Vec<f64>) -> Result<(), Box<dyn Err
}
/// decode decodes a slice of bytes into a vector of floats.
#[allow(dead_code)]
#[allow(clippy::many_single_char_names)]
#[allow(clippy::useless_let_if_seq)]
fn decode_with_sentinel(

View File

@ -15,7 +15,6 @@ enum Encoding {
/// deltas are then zig-zag encoded. The resulting zig-zag encoded deltas are
/// further compressed if possible, either via bit-packing using simple8b or by
/// run-length encoding the deltas if they're all the same.
#[allow(dead_code)]
pub fn encode<'a>(src: &[i64], dst: &'a mut Vec<u8>) -> Result<(), Box<dyn Error>> {
dst.truncate(0); // reset buffer.
if src.is_empty() {
@ -118,7 +117,6 @@ fn encode_rle(v: u64, delta: u64, count: u64, dst: &mut Vec<u8>) {
}
/// decode decodes a slice of bytes into a vector of signed integers.
#[allow(dead_code)]
pub fn decode<'a>(src: &[u8], dst: &'a mut Vec<i64>) -> Result<(), Box<dyn Error>> {
if src.is_empty() {
return Ok(());

View File

@ -16,7 +16,6 @@ enum Encoding {
/// is potentially carried out. If all the deltas are the same the block can be
/// encoded using RLE. If not, as long as the deltas are not bigger than simple8b::MAX_VALUE
/// they can be encoded using simple8b.
#[allow(dead_code)]
pub fn encode<'a>(src: &[i64], dst: &'a mut Vec<u8>) -> Result<(), Box<dyn Error>> {
dst.truncate(0); // reset buffer.
if src.is_empty() {
@ -144,7 +143,6 @@ fn encode_rle(v: u64, delta: u64, count: u64, dst: &mut Vec<u8>) {
/// decode decodes a slice of bytes encoded using encode back into a
/// vector of signed integers.
#[allow(dead_code)]
pub fn decode<'a>(src: &[u8], dst: &'a mut Vec<i64>) -> Result<(), Box<dyn Error>> {
if src.is_empty() {
return Ok(());