File tree Expand file tree Collapse file tree 9 files changed +17
-22
lines changed Expand file tree Collapse file tree 9 files changed +17
-22
lines changed Original file line number Diff line number Diff line change 37
37
profile : minimal
38
38
toolchain : nightly-2024-08-04
39
39
components : rustfmt, clippy
40
+ - uses : actions-rs/toolchain@v1
41
+ with :
42
+ profile : minimal
43
+ toolchain : 1.82.0
44
+ components : rustfmt, clippy
40
45
- name : Install protoc
41
46
uses : arduino/setup-protoc@v3
42
47
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 56
56
- id : cargo-clippy-hermes
57
57
name : Cargo clippy for Hermes
58
58
language : " rust"
59
- entry : cargo +nightly-2024-03-26 clippy --manifest-path ./apps/hermes/server/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
59
+ entry : cargo +1.82.0 clippy --manifest-path ./apps/hermes/server/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
60
60
pass_filenames : false
61
61
files : apps/hermes
62
62
# Hooks for Fortuna
Original file line number Diff line number Diff line change 1
- # The rust version itself is not so important as we install a fixed
2
- # nightly version. We use the latest stable version to get the latest
3
- # updates and dependencies.
4
- FROM rust:1.77.0 AS build
1
+ FROM rust:1.82.0 AS build
5
2
6
3
# Install OS packages
7
4
RUN apt-get update && apt-get install --yes \
8
5
build-essential curl clang libssl-dev protobuf-compiler
9
6
10
- # Set default toolchain
11
- RUN rustup default nightly-2024-03-26
12
-
13
7
# Build
14
8
WORKDIR /src
15
9
COPY apps/hermes/server apps/hermes/server
@@ -20,7 +14,7 @@ WORKDIR /src/apps/hermes/server
20
14
21
15
RUN --mount=type=cache,target=/root/.cargo/registry cargo build --release
22
16
23
- FROM rust:1.77 .0
17
+ FROM rust:1.82 .0
24
18
25
19
# Copy artifacts from other images
26
20
COPY --from=build /src/apps/hermes/server/target/release/hermes /usr/local/bin/
Original file line number Diff line number Diff line change 1
1
[toolchain]
2
- channel = "nightly-2024-03-26 "
2
+ channel = "1.82.0 "
Original file line number Diff line number Diff line change 1
- #![ feature( never_type) ]
2
- #![ feature( btree_cursors) ]
3
-
4
1
use {
5
2
anyhow:: Result ,
6
3
clap:: {
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ async fn fetch_bridge_data(
141
141
}
142
142
}
143
143
144
- pub async fn run < S > ( store : Arc < S > , pythnet_ws_endpoint : String ) -> Result < ! >
144
+ pub async fn run < S > ( store : Arc < S > , pythnet_ws_endpoint : String ) -> Result < ( ) >
145
145
where
146
146
S : Aggregates ,
147
147
S : Wormhole ,
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ where
140
140
}
141
141
142
142
#[ tracing:: instrument( skip( opts, state) ) ]
143
- async fn run < S > ( opts : RunOptions , state : Arc < S > ) -> Result < ! >
143
+ async fn run < S > ( opts : RunOptions , state : Arc < S > ) -> Result < ( ) >
144
144
where
145
145
S : Wormhole ,
146
146
S : Send + Sync + ' static ,
Original file line number Diff line number Diff line change 25
25
HashMap ,
26
26
HashSet ,
27
27
} ,
28
- ops:: Bound ,
29
28
sync:: Arc ,
30
29
} ,
31
30
strum:: IntoEnumIterator ,
@@ -300,8 +299,8 @@ async fn retrieve_message_state(
300
299
301
300
// Get the first element that is greater than or equal to the lookup time.
302
301
key_cache
303
- . lower_bound ( Bound :: Included ( & lookup_time) )
304
- . peek_next ( )
302
+ . range ( lookup_time.. )
303
+ . next ( )
305
304
. map ( |( _, v) | v)
306
305
. cloned ( )
307
306
}
You can’t perform that action at this time.
0 commit comments