Skip to content

Commit 02073a6

Browse files
chore(hermes): use stable rust toolchain in precommit formatter (#2103)
* chore(hermes): formatting * chore(hermes): use stable rust toolchain in precommit formatter
1 parent c3258d5 commit 02073a6

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ repos:
7878
- id: cargo-fmt-fortuna
7979
name: Cargo format for Fortuna
8080
language: "rust"
81-
entry: cargo +nightly-2023-07-23 fmt --manifest-path ./apps/fortuna/Cargo.toml --all -- --config-path rustfmt.toml
81+
entry: cargo +1.82.0 fmt --manifest-path ./apps/fortuna/Cargo.toml --all -- --config-path rustfmt.toml
8282
pass_filenames: false
8383
files: apps/fortuna
8484
- id: cargo-clippy-fortuna

apps/hermes/server/src/api/rest/v2/sse.rs

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,45 @@
11
use {
22
crate::{
33
api::{
4-
rest::{validate_price_ids, RestError},
4+
rest::{
5+
validate_price_ids,
6+
RestError,
7+
},
58
types::{
6-
BinaryUpdate, EncodingType, ParsedPriceUpdate, PriceIdInput, PriceUpdate,
9+
BinaryUpdate,
10+
EncodingType,
11+
ParsedPriceUpdate,
12+
PriceIdInput,
13+
PriceUpdate,
714
RpcPriceIdentifier,
815
},
916
ApiState,
1017
},
11-
state::aggregate::{Aggregates, AggregationEvent, RequestTime},
18+
state::aggregate::{
19+
Aggregates,
20+
AggregationEvent,
21+
RequestTime,
22+
},
1223
},
1324
anyhow::Result,
1425
axum::{
1526
extract::State,
16-
response::sse::{Event, KeepAlive, Sse},
27+
response::sse::{
28+
Event,
29+
KeepAlive,
30+
Sse,
31+
},
1732
},
1833
futures::Stream,
1934
pyth_sdk::PriceIdentifier,
2035
serde::Deserialize,
2136
serde_qs::axum::QsQuery,
2237
std::convert::Infallible,
2338
tokio::sync::broadcast,
24-
tokio_stream::{wrappers::BroadcastStream, StreamExt as _},
39+
tokio_stream::{
40+
wrappers::BroadcastStream,
41+
StreamExt as _,
42+
},
2543
utoipa::IntoParams,
2644
};
2745

0 commit comments

Comments
 (0)