fix: Remove unused lifetime declarations clippy found
parent
1c4caa2cc2
commit
69c123031a
|
@ -48,7 +48,7 @@ macro_rules! typed_packer_accessors {
|
|||
};
|
||||
}
|
||||
|
||||
impl<'a> Packers {
|
||||
impl Packers {
|
||||
pub fn chunk_values(&self, chunk_size: usize) -> PackerChunker<'_> {
|
||||
match self {
|
||||
Self::Float(p) => PackerChunker::Float(p.values.chunks(chunk_size)),
|
||||
|
|
|
@ -792,7 +792,7 @@ impl Dictionary {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Vec<&str>> for Dictionary {
|
||||
impl From<Vec<&str>> for Dictionary {
|
||||
fn from(vec: Vec<&str>) -> Self {
|
||||
let mut enc = Self::default();
|
||||
for v in vec {
|
||||
|
@ -802,7 +802,7 @@ impl<'a> From<Vec<&str>> for Dictionary {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Vec<String>> for Dictionary {
|
||||
impl From<Vec<String>> for Dictionary {
|
||||
fn from(vec: Vec<String>) -> Self {
|
||||
let mut enc = Self::default();
|
||||
for v in vec {
|
||||
|
@ -812,7 +812,7 @@ impl<'a> From<Vec<String>> for Dictionary {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Vec<Option<&str>>> for Dictionary {
|
||||
impl From<Vec<Option<&str>>> for Dictionary {
|
||||
fn from(vec: Vec<Option<&str>>) -> Self {
|
||||
let mut drle = Self::default();
|
||||
for v in vec {
|
||||
|
@ -825,7 +825,7 @@ impl<'a> From<Vec<Option<&str>>> for Dictionary {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Vec<Option<String>>> for Dictionary {
|
||||
impl From<Vec<Option<String>>> for Dictionary {
|
||||
fn from(vec: Vec<Option<String>>) -> Self {
|
||||
let mut drle = Self::default();
|
||||
for v in vec {
|
||||
|
@ -838,7 +838,7 @@ impl<'a> From<Vec<Option<String>>> for Dictionary {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<StringArray> for Dictionary {
|
||||
impl From<StringArray> for Dictionary {
|
||||
fn from(arr: StringArray) -> Self {
|
||||
let mut drle = Self::default();
|
||||
for i in 0..arr.len() {
|
||||
|
|
|
@ -901,7 +901,7 @@ impl RLE {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Vec<&str>> for RLE {
|
||||
impl From<Vec<&str>> for RLE {
|
||||
fn from(vec: Vec<&str>) -> Self {
|
||||
let mut drle = Self::default();
|
||||
for v in vec {
|
||||
|
@ -911,7 +911,7 @@ impl<'a> From<Vec<&str>> for RLE {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Vec<String>> for RLE {
|
||||
impl From<Vec<String>> for RLE {
|
||||
fn from(vec: Vec<String>) -> Self {
|
||||
let mut drle = Self::default();
|
||||
for v in vec {
|
||||
|
@ -921,7 +921,7 @@ impl<'a> From<Vec<String>> for RLE {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Vec<Option<&str>>> for RLE {
|
||||
impl From<Vec<Option<&str>>> for RLE {
|
||||
fn from(vec: Vec<Option<&str>>) -> Self {
|
||||
let mut drle = Self::default();
|
||||
for v in vec {
|
||||
|
@ -934,7 +934,7 @@ impl<'a> From<Vec<Option<&str>>> for RLE {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<Vec<Option<String>>> for RLE {
|
||||
impl From<Vec<Option<String>>> for RLE {
|
||||
fn from(vec: Vec<Option<String>>) -> Self {
|
||||
let mut drle = Self::default();
|
||||
for v in vec {
|
||||
|
@ -947,7 +947,7 @@ impl<'a> From<Vec<Option<String>>> for RLE {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> From<StringArray> for RLE {
|
||||
impl From<StringArray> for RLE {
|
||||
fn from(arr: StringArray) -> Self {
|
||||
let mut drle = Self::default();
|
||||
for i in 0..arr.len() {
|
||||
|
|
|
@ -1480,7 +1480,7 @@ pub enum Literal {
|
|||
Boolean(bool),
|
||||
}
|
||||
|
||||
impl<'a> TryFrom<&DFScalarValue> for Literal {
|
||||
impl TryFrom<&DFScalarValue> for Literal {
|
||||
type Error = String;
|
||||
|
||||
fn try_from(value: &DFScalarValue) -> Result<Self, Self::Error> {
|
||||
|
|
|
@ -1077,7 +1077,7 @@ impl std::ops::AddAssign<&Self> for Scalar {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> std::ops::AddAssign<&Scalar> for &mut Scalar {
|
||||
impl std::ops::AddAssign<&Scalar> for &mut Scalar {
|
||||
fn add_assign(&mut self, rhs: &Scalar) {
|
||||
match self {
|
||||
Scalar::F64(v) => {
|
||||
|
|
|
@ -84,7 +84,7 @@ struct StringVisitor {
|
|||
string: String,
|
||||
}
|
||||
|
||||
impl<'a> tracing::field::Visit for StringVisitor {
|
||||
impl tracing::field::Visit for StringVisitor {
|
||||
fn record_debug(&mut self, field: &Field, value: &dyn fmt::Debug) {
|
||||
use std::fmt::Write;
|
||||
write!(self.string, "{} = {:?}; ", field.name(), value).unwrap();
|
||||
|
|
Loading…
Reference in New Issue