Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 1c576d4

Browse files
committed
Upgrade to Rust 1.41.1
(cherry picked from commit 7d27be2)
1 parent f6232e1 commit 1c576d4

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

ci/docker-rust-nightly/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM solanalabs/rust:1.41.0
1+
FROM solanalabs/rust:1.41.1
22
ARG date
33

44
RUN set -x \

ci/docker-rust/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Note: when the rust version is changed also modify
22
# ci/rust-version.sh to pick up the new image tag
3-
FROM rust:1.41.0
3+
FROM rust:1.41.1
44

55
# Add Google Protocol Buffers for Libra's metrics library.
66
ENV PROTOC_VERSION 3.8.0

ci/rust-version.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
if [[ -n $RUST_STABLE_VERSION ]]; then
1717
stable_version="$RUST_STABLE_VERSION"
1818
else
19-
stable_version=1.41.0
19+
stable_version=1.41.1
2020
fi
2121

2222
if [[ -n $RUST_NIGHTLY_VERSION ]]; then
2323
nightly_version="$RUST_NIGHTLY_VERSION"
2424
else
25-
nightly_version=2020-02-06
25+
nightly_version=2020-02-27
2626
fi
2727

2828

perf/src/packet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pub const NUM_PACKETS: usize = 1024 * 8;
88

99
pub const PACKETS_PER_BATCH: usize = 256;
1010
pub const NUM_RCVMMSGS: usize = 128;
11-
pub const PACKETS_BATCH_SIZE: usize = (PACKETS_PER_BATCH * PACKET_DATA_SIZE);
11+
pub const PACKETS_BATCH_SIZE: usize = PACKETS_PER_BATCH * PACKET_DATA_SIZE;
1212

1313
#[derive(Debug, Clone)]
1414
pub struct Packets {

runtime/src/bank.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ use std::{
6363
sync::{Arc, RwLock, RwLockReadGuard},
6464
};
6565

66-
pub const SECONDS_PER_YEAR: f64 = (365.25 * 24.0 * 60.0 * 60.0);
66+
pub const SECONDS_PER_YEAR: f64 = 365.25 * 24.0 * 60.0 * 60.0;
6767
pub const MAX_SNAPSHOT_DATA_FILE_SIZE: u64 = 32 * 1024 * 1024 * 1024; // 32 GiB
6868

6969
pub const MAX_LEADER_SCHEDULE_STAKES: Epoch = 5;

sdk/src/timing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn timestamp() -> u64 {
2424
duration_as_ms(&now)
2525
}
2626

27-
pub const SECONDS_PER_YEAR: f64 = (365.242_199 * 24.0 * 60.0 * 60.0);
27+
pub const SECONDS_PER_YEAR: f64 = 365.242_199 * 24.0 * 60.0 * 60.0;
2828

2929
/// from years to slots
3030
pub fn years_as_slots(years: f64, tick_duration: &Duration, ticks_per_slot: u64) -> f64 {

0 commit comments

Comments
 (0)