Skip to content

Commit 0022ed7

Browse files
committed
Upgrade rust-toolchain to 1.85.0
1 parent c8877c2 commit 0022ed7

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ tokio = { version = "1" }
2727
bytes = "1"
2828
futures = "0.3"
2929
jsonrpc-core = "18"
30-
parking_lot = "0.12"
3130
lru = "0.7.1"
3231
dashmap = "5.4"
3332
dyn-clone = "1.0"
@@ -62,5 +61,4 @@ test = []
6261
[dev-dependencies]
6362
clap = { version = "4.4.18", features = ["derive"] }
6463
httpmock = "0.6"
65-
async-global-executor = "2.3.1"
6664
hex = "0.4"

check-cargotoml.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function check_dependencies_for() {
154154
fi
155155
if [ "${depcnt}" -eq 0 ]; then
156156
case "${dependency}" in
157-
phf)
157+
phf | async_trait)
158158
# We cann't handle these crates.
159159
printf "Warn: [%s::%s] in <%s>\n" \
160160
"${deptype}" "${dependency}" "${pkgroot}"
@@ -178,7 +178,9 @@ function check_dependencies_for() {
178178
}
179179

180180
function check_dependencies() {
181+
echo "Checking dependencies..."
181182
check_dependencies_for "dependencies"
183+
echo "Checking build-dependencies..."
182184
check_dependencies_for "build-dependencies"
183185
# TODO: uncomment this line when `async-global-executor` updated to >= v2.2.0
184186
# check_dependencies_for "dev-dependencies"

deny.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ allow = [
9898
"CC0-1.0",
9999
"ISC",
100100
"MIT",
101-
"Unicode-DFS-2016",
102101
"BSL-1.0", # xxhash-rust 0.8.10
103102
"Unicode-3.0",
104103
#"MIT",

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.81.0
1+
1.85.0

src/transaction/builder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl<'a> DefaultChangeBuilder<'a> {
7171
}
7272
}
7373

74-
impl<'a> ChangeBuilder for DefaultChangeBuilder<'a> {
74+
impl ChangeBuilder for DefaultChangeBuilder<'_> {
7575
fn init(&self, tx: &mut TransactionBuilder) {
7676
let (change_output, change_output_data) = self.get_change();
7777
tx.output(change_output);

src/util.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ pub fn minimal_unlock_point(
108108
} else {
109109
prepare_point.number() - deposit_point.number()
110110
};
111-
let rest_epoch_cnt =
112-
(passed_epoch_cnt + (LOCK_PERIOD_EPOCHES - 1)) / LOCK_PERIOD_EPOCHES * LOCK_PERIOD_EPOCHES;
111+
let rest_epoch_cnt = passed_epoch_cnt.div_ceil(LOCK_PERIOD_EPOCHES) * LOCK_PERIOD_EPOCHES;
113112
EpochNumberWithFraction::new(
114113
deposit_point.number() + rest_epoch_cnt,
115114
deposit_point.index(),

0 commit comments

Comments
 (0)