Skip to content

Commit 780dbf6

Browse files
committed
fix: edition 2024
1 parent 7ccf16c commit 780dbf6

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

packages/yew-link-macro/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "yew-link-macro"
33
version = "0.1.0"
4-
edition = "2021"
5-
rust-version = "1.84.0"
4+
edition = "2024"
5+
rust-version.workspace = true
66
description = "Proc macros for yew-link"
77

88
[lib]

packages/yew-link-macro/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use proc_macro::TokenStream;
22
use proc_macro2::Span;
33
use quote::quote;
4-
use syn::{parse_macro_input, FnArg, Ident, ImplItem, ImplItemFn, ItemImpl, Pat, PatType};
4+
use syn::{FnArg, Ident, ImplItem, ImplItemFn, ItemImpl, Pat, PatType, parse_macro_input};
55

66
/// Derive a [`LinkedState`] implementation from an impl block that declares
77
/// `type Context`, `type Input`, and `async fn resolve`.

packages/yew-link/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "yew-link"
33
version = "0.1.0"
4-
edition = "2021"
5-
rust-version = "1.84.0"
4+
edition = "2024"
5+
rust-version.workspace = true
66
description = "Server-client state linking for Yew SSR"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

packages/yew-link/src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::collections::HashMap;
44
#[cfg(target_arch = "wasm32")]
55
use std::collections::HashSet;
66
use std::fmt;
7-
use std::future::Future;
87
use std::hash::Hash;
98
#[cfg(target_arch = "wasm32")]
109
use std::num::NonZeroUsize;
@@ -14,8 +13,8 @@ use std::sync::Arc;
1413

1514
#[cfg(target_arch = "wasm32")]
1615
use lru::LruCache;
17-
use serde::de::DeserializeOwned;
1816
use serde::Serialize;
17+
use serde::de::DeserializeOwned;
1918
use yew::prelude::*;
2019
#[cfg(target_arch = "wasm32")]
2120
use yew::suspense::Suspension;
@@ -683,10 +682,10 @@ pub fn use_linked_state<T: LinkedState>(input: T::Input) -> SuspensionResult<Lin
683682
pub mod service {
684683
use std::sync::Arc;
685684

685+
use axum::Json;
686686
use axum::extract::State;
687687
use axum::http::StatusCode;
688688
use axum::response::IntoResponse;
689-
use axum::Json;
690689

691690
use super::{LinkRequest, LinkResponse, Resolver};
692691

0 commit comments

Comments
 (0)