-
Notifications
You must be signed in to change notification settings - Fork 51
CI: fix failing audit, bump rust version #826
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
Conversation
Pull Request Test Coverage Report for Build 14908097067Details
💛 - Coveralls |
ignore paste issue for now, bump pyo3 to newer version even though we aren't affected by the vulnerabillity
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.
approved but please check notes
@@ -232,7 +232,7 @@ pub trait ReadSigmaVlqExt: io::Read + io::Seek { | |||
|
|||
/// Read a vector of bits with the given size | |||
fn get_bits(&mut self, size: usize) -> Result<Vec<bool>, VlqEncodingError> { | |||
let byte_num = (size + 7) / 8; | |||
let byte_num = size.div_ceil(8); |
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.
is it the same?
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.
Yes, all the code changes are to address lints added in newer compiler versions. https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil
} else { | ||
selected_boxes_value - target_balance | ||
}; | ||
let value_change_amt: u64 = selected_boxes_value.saturating_sub(target_balance); |
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.
is it the same?
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.
Bump rust version (needed by some dependencies), and fix issues reported by audit