-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(rust): Update Rust toolchain #15353
Conversation
@@ -105,6 +105,7 @@ where | |||
{ | |||
let mut mut_bitmap = MutableBitmap::with_capacity(array.len()); | |||
|
|||
#[allow(clippy::manual_unwrap_or_default)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lint is currently broken:
rust-lang/rust-clippy#12580
/// Utility to write to `&mut Vec<u8>` buffer. | ||
struct StringWrap<'a>(pub &'a mut Vec<u8>); | ||
|
||
impl<'a> std::fmt::Write for StringWrap<'a> { | ||
fn write_str(&mut self, s: &str) -> std::fmt::Result { | ||
self.0.extend_from_slice(s.as_bytes()); | ||
Ok(()) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was unused.
struct Iter<T, I: Iterator<Item = Option<T>>> { | ||
current: i32, | ||
offsets: std::vec::IntoIter<i32>, | ||
values: I, | ||
} | ||
|
||
impl<T, I: Iterator<Item = Option<T>> + Clone> Iterator for Iter<T, I> { | ||
type Item = Option<std::iter::Take<std::iter::Skip<I>>>; | ||
|
||
fn next(&mut self) -> Option<Self::Item> { | ||
let next = self.offsets.next(); | ||
next.map(|next| { | ||
let length = next - self.current; | ||
let iter = self | ||
.values | ||
.clone() | ||
.skip(self.current as usize) | ||
.take(length as usize); | ||
self.current = next; | ||
Some(iter) | ||
}) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This struct was unused.
#[allow(dead_code)] | ||
pub num_values: usize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field is never used - do we need to keep it or can it be removed entirely?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15353 +/- ##
==========================================
- Coverage 81.41% 81.40% -0.02%
==========================================
Files 1362 1362
Lines 176734 176726 -8
Branches 2531 2531
==========================================
- Hits 143896 143867 -29
- Misses 32354 32375 +21
Partials 484 484 ☔ View full report in Codecov by Sentry. |
312ceba
to
bea305f
Compare
bea305f
to
933aa80
Compare
No description provided.