mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +00:00
rust 1.53.0 updates (#2411)
## Issue Addressed `make lint` failing on rust 1.53.0. ## Proposed Changes 1.53.0 updates ## Additional Info I haven't figure out why yet, we were now hitting the recursion limit in a few crates. So I had to add `#![recursion_limit = "256"]` in a few places Co-authored-by: realbigsean <seananderson33@gmail.com> Co-authored-by: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -762,8 +762,8 @@ mod test {
|
||||
|
||||
let eth1_chain = get_eth1_chain();
|
||||
|
||||
assert_eq!(
|
||||
eth1_chain.use_dummy_backend, false,
|
||||
assert!(
|
||||
!eth1_chain.use_dummy_backend,
|
||||
"test should not use dummy backend"
|
||||
);
|
||||
|
||||
@@ -795,8 +795,8 @@ mod test {
|
||||
let eth1_chain = get_eth1_chain();
|
||||
let max_deposits = <E as EthSpec>::MaxDeposits::to_u64();
|
||||
|
||||
assert_eq!(
|
||||
eth1_chain.use_dummy_backend, false,
|
||||
assert!(
|
||||
!eth1_chain.use_dummy_backend,
|
||||
"test should not use dummy backend"
|
||||
);
|
||||
|
||||
@@ -877,8 +877,8 @@ mod test {
|
||||
|
||||
let eth1_chain = get_eth1_chain();
|
||||
|
||||
assert_eq!(
|
||||
eth1_chain.use_dummy_backend, false,
|
||||
assert!(
|
||||
!eth1_chain.use_dummy_backend,
|
||||
"test should not use dummy backend"
|
||||
);
|
||||
|
||||
@@ -901,8 +901,8 @@ mod test {
|
||||
|
||||
let eth1_chain = get_eth1_chain();
|
||||
|
||||
assert_eq!(
|
||||
eth1_chain.use_dummy_backend, false,
|
||||
assert!(
|
||||
!eth1_chain.use_dummy_backend,
|
||||
"test should not use dummy backend"
|
||||
);
|
||||
|
||||
|
||||
@@ -353,11 +353,11 @@ mod tests {
|
||||
#[test]
|
||||
fn lock() {
|
||||
let lock = Lock::new();
|
||||
assert_eq!(lock.lock(), false);
|
||||
assert_eq!(lock.lock(), true);
|
||||
assert_eq!(lock.lock(), true);
|
||||
assert!(!lock.lock());
|
||||
assert!(lock.lock());
|
||||
assert!(lock.lock());
|
||||
lock.unlock();
|
||||
assert_eq!(lock.lock(), false);
|
||||
assert_eq!(lock.lock(), true);
|
||||
assert!(!lock.lock());
|
||||
assert!(lock.lock());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user