Skip to content

Commit a65384b

Browse files
committed
update deps + improve clippy warnings
1 parent 6b759fe commit a65384b

File tree

4 files changed

+58
-40
lines changed

4 files changed

+58
-40
lines changed

Cargo.lock

Lines changed: 34 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ reqwest = { version = "0.12.22", features = ["json", "stream"] }
5050
rocket = { version = "0.5.1", features = ["json"] }
5151
serde = { version = "1", default-features = false, features = ["derive"] }
5252
serde_json = { version = "1", default-features = false, features = ["std"] }
53-
tokio = { version = "1.46.1", features = ["full"] }
53+
tokio = { version = "1.47.0", features = ["full"] }
5454
tokio-stream = { version = "0.1.17" }
5555
tracing = { version = "0.1.41" }
5656
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }

Makefile

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22

33
all:
44
@echo "Usage:"
5-
@echo "fmt - run the rust formatter"
6-
@echo "sort - sort TOML dependencies"
7-
@echo "lint - combine fmt+sort"
8-
@echo "check - shallow check of rust code (pre-compile)"
9-
@echo "clippy - run clippy checks"
10-
@echo "doc - doc checks"
11-
@echo "hack - test feature matrix compatibility"
12-
@echo "test - run all unit and doc tests"
13-
@echo "qa - combine lint+check+clippy+doc+hack+test"
14-
@echo "detect-unused-deps - detect unused deps for removal"
15-
@echo "hello-axum - run hello-world example using the Axum framework"
16-
@echo "test-suite-axum - run test-suite example runner using the Axum framework"
17-
@echo "hello-rocket - run hello-world example using the Rocket framework"
5+
@echo "fmt - run the rust formatter"
6+
@echo "sort - sort TOML dependencies"
7+
@echo "lint - combine fmt+sort"
8+
@echo "check - shallow check of rust code (pre-compile)"
9+
@echo "clippy - run clippy checks"
10+
@echo "doc - doc checks"
11+
@echo "hack - test feature matrix compatibility"
12+
@echo "test - run all unit and doc tests"
13+
@echo "qa - combine lint+check+clippy+doc+hack+test"
14+
@echo "detect-unused-deps - detect unused deps for removal"
15+
@echo "hello-axum - run hello-world example using the Axum framework"
16+
@echo "activity-feed-axum - run activity-feed example using the Axum framework"
17+
@echo "test-suite-axum - run test-suite example runner using the Axum framework"
18+
@echo "hello-rocket - run hello-world example using the Rocket framework"
19+
@echo "hello-channel-rocket - run hello-world w/ a channel example using the Rocket framework"
1820
.PHONY:
1921

2022
fmt:
@@ -55,8 +57,14 @@ detect-unused-deps:
5557
hello-axum:
5658
cargo run --example axum-hello --features axum,tracing
5759

60+
activity-feed-axum:
61+
cargo run --example axum-activity-feed --features axum,tracing
62+
5863
test-suite-axum:
5964
cargo run --example axum-test-suite --features axum,tracing
6065

6166
hello-rocket:
6267
cargo run --example rocket-hello --features rocket
68+
69+
hello-channel-rocket:
70+
cargo run --example rocket-hello-channel --features rocket

examples/axum-activity-feed.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use {
66
response::{Html, IntoResponse, Sse},
77
routing::{get, post},
88
},
9-
chrono,
109
core::{convert::Infallible, error::Error, time::Duration},
1110
datastar::{
1211
axum::ReadSignals,
@@ -83,7 +82,7 @@ async fn generate(ReadSignals(signals): ReadSignals<Signals>) -> impl IntoRespon
8382
// Start the SSE stream
8483
Sse::new(stream! {
8584
// Signal event generation start
86-
let patch = PatchSignals::new(format!(r#"{{"generating": true}}"#));
85+
let patch = PatchSignals::new(r#"{{"generating": true}}"#);
8786
let sse_event = patch.write_as_axum_sse_event();
8887
yield Ok::<_, Infallible>(sse_event);
8988

@@ -105,7 +104,7 @@ async fn generate(ReadSignals(signals): ReadSignals<Signals>) -> impl IntoRespon
105104
}
106105

107106
// Signal event generation end
108-
let patch = PatchSignals::new(format!(r#"{{"generating": false}}"#));
107+
let patch = PatchSignals::new(r#"{{"generating": false}}"#);
109108
let sse_event = patch.write_as_axum_sse_event();
110109
yield Ok::<_, Infallible>(sse_event);
111110
})

0 commit comments

Comments
 (0)