Skip to content

Commit 2c816f7

Browse files
hinto-janaiBoog900
andauthored
workspace: Rust 1.91..=1.93 (#574)
* cargo clippy --fix * add clippy.toml exceptions * fix renamed lint * fix clippy::unused-assignments * rustc lint * clippy * 1.93 clippy --------- Co-authored-by: Boog900 <boog900@tutanota.com>
1 parent cf3137b commit 2c816f7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

clippy.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ upper-case-acronyms-aggressive = true
44
# <https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown>
55
doc-valid-idents = [
66
"RandomX",
7+
"PoW",
8+
"PoWER",
9+
"RandomX",
10+
"EquiX",
711
# This adds the rest of the default exceptions.
812
".."
913
]

consensus/context/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ impl BlockchainContext {
143143
///
144144
/// ref: <https://cuprate.github.io/monero-book/consensus_rules/transactions/unlock_time.html#getting-the-current-time>
145145
pub fn current_adjusted_timestamp_for_time_lock(&self) -> u64 {
146+
// FIXME: use if let chain with Rust 2024.
146147
if self.current_hf < HardFork::V13 {
147148
return current_unix_timestamp();
148149
}

0 commit comments

Comments
 (0)