Upgrade Rust to 1.52.0 (#17096)
* Upgrade Rust to 1.52.0 update nightly_version to newly pushed docker image fix clippy lint errors 1.52 comes with grcov 0.8.0, include this version to script * upgrade to Rust 1.52.1 * disabling Serum from downstream projects until it is upgraded to Rust 1.52.1
This commit is contained in:
@ -1389,22 +1389,22 @@ mod tests {
|
||||
fn test_is_zeroed() {
|
||||
const ZEROS_LEN: usize = 1024;
|
||||
let mut buf = [0; ZEROS_LEN];
|
||||
assert_eq!(PreAccount::is_zeroed(&buf), true);
|
||||
assert!(PreAccount::is_zeroed(&buf));
|
||||
buf[0] = 1;
|
||||
assert_eq!(PreAccount::is_zeroed(&buf), false);
|
||||
assert!(!PreAccount::is_zeroed(&buf));
|
||||
|
||||
let mut buf = [0; ZEROS_LEN - 1];
|
||||
assert_eq!(PreAccount::is_zeroed(&buf), true);
|
||||
assert!(PreAccount::is_zeroed(&buf));
|
||||
buf[0] = 1;
|
||||
assert_eq!(PreAccount::is_zeroed(&buf), false);
|
||||
assert!(!PreAccount::is_zeroed(&buf));
|
||||
|
||||
let mut buf = [0; ZEROS_LEN + 1];
|
||||
assert_eq!(PreAccount::is_zeroed(&buf), true);
|
||||
assert!(PreAccount::is_zeroed(&buf));
|
||||
buf[0] = 1;
|
||||
assert_eq!(PreAccount::is_zeroed(&buf), false);
|
||||
assert!(!PreAccount::is_zeroed(&buf));
|
||||
|
||||
let buf = vec![];
|
||||
assert_eq!(PreAccount::is_zeroed(&buf), true);
|
||||
assert!(PreAccount::is_zeroed(&buf));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user