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

Fix a compilation error (maybe temporary) #2046

Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions massa-consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#![feature(bool_to_option)]
#![feature(hash_drain_filter)]
#![feature(map_first_last)]
#![feature(int_roundings)]

#[macro_use]
extern crate massa_logging;
Expand Down
3 changes: 1 addition & 2 deletions massa-consensus/src/pos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use massa_models::{
};
use massa_signature::derive_public_key;
use num::rational::Ratio;
use num::Integer;
use rand::distributions::Uniform;
use rand::Rng;
use rand_xoshiro::rand_core::SeedableRng;
Expand Down Expand Up @@ -519,7 +518,7 @@ impl DeserializeCompact for ThreadCycleState {
"invalid number entries when deserializing ExportThreadCycleStat rng_seed".into(),
));
}
let bits_u8_len = n_entries.div_ceil(&u8::BITS) as usize;
let bits_u8_len = n_entries.div_ceil(u8::BITS) as usize;
if buffer[cursor..].len() < bits_u8_len {
return Err(ModelsError::SerializeError(
"too few remaining bytes when deserializing ExportThreadCycleStat rng_seed".into(),
Expand Down