Skip to content

Commit 9d54b88

Browse files
committed
update to edition 2024
1 parent 9b0d380 commit 9d54b88

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

packages/core-macro/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "dioxus-core-macro"
33
version = { workspace = true }
44
authors = ["Jonathan Kelley"]
5-
edition = "2021"
5+
edition = "2024"
66
description = "Core macro for Dioxus Virtual DOM"
77
license = "MIT OR Apache-2.0"
88
repository = "https://github.com/DioxusLabs/dioxus/"

packages/core-macro/src/component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ fn rebind_mutability(f: &FnArg) -> TokenStream {
575575
fn strip_pat_mutability(pat: &Pat) -> Pat {
576576
let mut pat = pat.clone();
577577
// rip off mutability, but still write it out eventually
578-
if let Pat::Ident(ref mut pat_ident) = &mut pat {
578+
if let Pat::Ident(pat_ident) = &mut pat {
579579
pat_ident.mutability = None;
580580
}
581581

packages/core-macro/src/props/mod.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -767,11 +767,11 @@ mod struct_info {
767767

768768
pub fn builder_creation_impl(&self) -> Result<TokenStream, Error> {
769769
let StructInfo {
770-
ref vis,
771-
ref name,
772-
ref builder_name,
770+
vis,
771+
name,
772+
builder_name,
773773
..
774-
} = *self;
774+
} = self;
775775

776776
let generics = self.generics.clone();
777777
let (impl_generics, ty_generics, where_clause) = generics.split_for_impl();
@@ -1235,14 +1235,11 @@ Finally, call `.build()` to create the instance of `{name}`.
12351235

12361236
pub fn required_field_impl(&self, field: &FieldInfo) -> Result<TokenStream, Error> {
12371237
let StructInfo {
1238-
ref name,
1239-
ref builder_name,
1240-
..
1238+
name, builder_name, ..
12411239
} = self;
12421240

12431241
let FieldInfo {
1244-
name: ref field_name,
1245-
..
1242+
name: field_name, ..
12461243
} = field;
12471244
let mut builder_generics: Vec<syn::GenericArgument> = self
12481245
.generics

packages/rsx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "dioxus-rsx"
33
version = { workspace = true }
44
authors = ["Jonathan Kelley", "Evan Almloff"]
5-
edition = "2021"
5+
edition = "2024"
66
license = "MIT OR Apache-2.0"
77
description = "Core functionality for Dioxus - a concurrent renderer-agnostic Virtual DOM for interactive user experiences"
88
repository = "https://github.com/DioxusLabs/dioxus/"

0 commit comments

Comments
 (0)