Skip to content

Commit 98e661b

Browse files
committed
try to fix the compilation errors
Signed-off-by: mohapatr3 <prasanta.mohapatra@here.com>
1 parent 39aef20 commit 98e661b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

flatdata-rs/lib/src/multivector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ where
130130
/// may fail due to different IO reasons.
131131
///
132132
/// [`flush`]: #method.flush
133-
pub fn grow(&mut self) -> io::Result<<Ts as VariadicStruct>::ItemMut> {
133+
pub fn grow(&mut self) -> io::Result<<Ts as VariadicStruct<'_>>::ItemMut> {
134134
if self.data.len() > 1024 * 1024 * 32 {
135135
self.flush()?;
136136
}

flatdata-rs/lib/src/test/test_generated.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ impl XBuilder {
524524
/// [`data`]: struct.X.html#method.data
525525
/// [`ExternalVector::close`]: flatdata/struct.ExternalVector.html#method.close
526526
#[inline]
527-
pub fn start_data(&self) -> ::std::io::Result<crate::ExternalVector<super::test::A>> {
527+
pub fn start_data(&self) -> ::std::io::Result<crate::ExternalVector<'_, super::test::A>> {
528528
crate::create_external_vector(&*self.storage, "data", schema::x::resources::DATA)
529529
}
530530

@@ -623,7 +623,7 @@ impl YBuilder {
623623
/// [`data`]: struct.Y.html#method.data
624624
/// [`ExternalVector::close`]: flatdata/struct.ExternalVector.html#method.close
625625
#[inline]
626-
pub fn start_data(&self) -> ::std::io::Result<crate::ExternalVector<super::test::R>> {
626+
pub fn start_data(&self) -> ::std::io::Result<crate::ExternalVector<'_, super::test::R>> {
627627
crate::create_external_vector(&*self.storage, "data", schema::y::resources::DATA)
628628
}
629629

@@ -767,7 +767,7 @@ impl Z {
767767
}
768768

769769
#[inline]
770-
pub fn ab(&self) -> &crate::MultiArrayView<Ab> {
770+
pub fn ab(&self) -> &crate::MultiArrayView<'_, Ab> {
771771
&self.ab
772772
}
773773

@@ -843,7 +843,7 @@ impl ZBuilder {
843843
/// [`ab`]: struct.Z.html#method.ab
844844
/// [`MultiVector::close`]: flatdata/struct.MultiVector.html#method.close
845845
#[inline]
846-
pub fn start_ab(&self) -> ::std::io::Result<crate::MultiVector<Ab>> {
846+
pub fn start_ab(&self) -> ::std::io::Result<crate::MultiVector<'_, Ab>> {
847847
crate::create_multi_vector(&*self.storage, "ab", schema::z::resources::AB)
848848
}
849849

@@ -873,7 +873,7 @@ impl W {
873873
}
874874

875875
#[inline]
876-
pub fn blob(&self) -> crate::RawData {
876+
pub fn blob(&self) -> crate::RawData<'_> {
877877
self.blob
878878
}
879879

0 commit comments

Comments
 (0)