File tree 6 files changed +6
-8
lines changed
6 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ tokio = { version = "1" }
27
27
bytes = " 1"
28
28
futures = " 0.3"
29
29
jsonrpc-core = " 18"
30
- parking_lot = " 0.12"
31
30
lru = " 0.7.1"
32
31
dashmap = " 5.4"
33
32
dyn-clone = " 1.0"
@@ -62,5 +61,4 @@ test = []
62
61
[dev-dependencies ]
63
62
clap = { version = " 4.4.18" , features = [" derive" ] }
64
63
httpmock = " 0.6"
65
- async-global-executor = " 2.3.1"
66
64
hex = " 0.4"
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ function check_dependencies_for() {
154
154
fi
155
155
if [ " ${depcnt} " -eq 0 ]; then
156
156
case " ${dependency} " in
157
- phf)
157
+ phf | async_trait )
158
158
# We cann't handle these crates.
159
159
printf " Warn: [%s::%s] in <%s>\n" \
160
160
" ${deptype} " " ${dependency} " " ${pkgroot} "
@@ -178,7 +178,9 @@ function check_dependencies_for() {
178
178
}
179
179
180
180
function check_dependencies() {
181
+ echo " Checking dependencies..."
181
182
check_dependencies_for " dependencies"
183
+ echo " Checking build-dependencies..."
182
184
check_dependencies_for " build-dependencies"
183
185
# TODO: uncomment this line when `async-global-executor` updated to >= v2.2.0
184
186
# check_dependencies_for "dev-dependencies"
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ allow = [
98
98
" CC0-1.0" ,
99
99
" ISC" ,
100
100
" MIT" ,
101
- " Unicode-DFS-2016" ,
102
101
" BSL-1.0" , # xxhash-rust 0.8.10
103
102
" Unicode-3.0" ,
104
103
# "MIT",
Original file line number Diff line number Diff line change 1
- 1.81 .0
1
+ 1.85 .0
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ impl<'a> DefaultChangeBuilder<'a> {
71
71
}
72
72
}
73
73
74
- impl < ' a > ChangeBuilder for DefaultChangeBuilder < ' a > {
74
+ impl ChangeBuilder for DefaultChangeBuilder < ' _ > {
75
75
fn init ( & self , tx : & mut TransactionBuilder ) {
76
76
let ( change_output, change_output_data) = self . get_change ( ) ;
77
77
tx. output ( change_output) ;
Original file line number Diff line number Diff line change @@ -108,8 +108,7 @@ pub fn minimal_unlock_point(
108
108
} else {
109
109
prepare_point. number ( ) - deposit_point. number ( )
110
110
} ;
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 ;
113
112
EpochNumberWithFraction :: new (
114
113
deposit_point. number ( ) + rest_epoch_cnt,
115
114
deposit_point. index ( ) ,
You can’t perform that action at this time.
0 commit comments