Skip to content

Commit d7d1449

Browse files
committed
Fix lifetimes
1 parent 18ba160 commit d7d1449

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parquet-variant/src/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ impl VariantBuilder {
369369
(metadata, self.buffer)
370370
}
371371

372-
pub fn append_value<T: Into<Variant<'static, 'static>>>(&mut self, value: T) {
372+
pub fn append_value<'m, 'd, T: Into<Variant<'m, 'd>>>(&mut self, value: T) {
373373
let variant = value.into();
374374
match variant {
375375
Variant::Null => self.append_null(),
@@ -421,7 +421,7 @@ impl<'a> ArrayBuilder<'a> {
421421
}
422422
}
423423

424-
pub fn append_value<T: Into<Variant<'static, 'static>>>(&mut self, value: T) {
424+
pub fn append_value<'m, 'd, T: Into<Variant<'m, 'd>>>(&mut self, value: T) {
425425
self.parent.append_value(value);
426426
let element_end = self.parent.offset() - self.start_pos;
427427
self.offsets.push(element_end);
@@ -482,7 +482,7 @@ impl<'a> ObjectBuilder<'a> {
482482
}
483483

484484
/// Add a field with key and value to the object
485-
pub fn append_value<T: Into<Variant<'static, 'static>>>(&mut self, key: &str, value: T) {
485+
pub fn append_value<'m, 'd, T: Into<Variant<'m, 'd>>>(&mut self, key: &str, value: T) {
486486
let id = self.parent.add_key(key);
487487
let field_start = self.parent.offset() - self.start_pos;
488488
self.parent.append_value(value);

0 commit comments

Comments
 (0)