Skip to content
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

Merged
merged 12 commits into from
Mar 28, 2024
Merged

build(rust): Update Rust toolchain #15353

merged 12 commits into from
Mar 28, 2024

Conversation

stinodego
Copy link
Member

No description provided.

@stinodego stinodego changed the title chore(rust): Update Rust toolchain build(rust): Update Rust toolchain Mar 28, 2024
@github-actions github-actions bot added internal An internal refactor or improvement rust Related to Rust Polars build Changes that affect the build system or external dependencies labels Mar 28, 2024
@@ -105,6 +105,7 @@ where
{
let mut mut_bitmap = MutableBitmap::with_capacity(array.len());

#[allow(clippy::manual_unwrap_or_default)]
Copy link
Member Author

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

Comment on lines -269 to -277
/// 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(())
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unused.

Comment on lines -53 to -75
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)
})
}
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This struct was unused.

Comment on lines +43 to 44
#[allow(dead_code)]
pub num_values: usize,
Copy link
Member Author

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?

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

Attention: Patch coverage is 84.78261% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 81.40%. Comparing base (3785fad) to head (6ce66d2).
Report is 3 commits behind head on main.

❗ Current head 6ce66d2 differs from pull request most recent head 933aa80. Consider uploading reports for the commit 933aa80 to get more accurate results

Files Patch % Lines
crates/polars-arrow/src/compute/decimal.rs 0.00% 3 Missing ⚠️
crates/polars-arrow/src/compute/arity.rs 0.00% 2 Missing ⚠️
crates/polars-plan/src/dsl/functions/arity.rs 50.00% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@stinodego stinodego merged commit 2e46f8d into main Mar 28, 2024
23 checks passed
@stinodego stinodego deleted the bump-toolchain branch March 28, 2024 13:00
@c-peters c-peters added the accepted Ready for implementation label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation build Changes that affect the build system or external dependencies internal An internal refactor or improvement rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants