Skip to content

Commit

Permalink
Remove double state
Browse files Browse the repository at this point in the history
`State<AppState>` used to be `State<State<Arc<Mutex<Vec<String>>>>>`, which probably does not make sense
  • Loading branch information
michielp1807 authored and squell committed Dec 12, 2024
1 parent a908073 commit ed4703f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slides/5_1-rust-for-web.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ layout: default

```rust
/// A very long type name warrants a type alias
type AppState = State<Arc<Mutex<Vec<String>>>>;
type AppState = Arc<Mutex<Vec<String>>>;

async fn handler(
Path(name): Path<String>,
Expand Down

0 comments on commit ed4703f

Please sign in to comment.