Skip to content

Commit 1cb9b1b

Browse files
David Tolnayfacebook-github-bot
authored andcommitted
Switch to 2024 edition
Reviewed By: JakobDegen Differential Revision: D74375799 fbshipit-source-id: 53490c5c162c0631ae097c3a4a23669ee791f70e
1 parent 1808fe3 commit 1cb9b1b

File tree

23 files changed

+26
-26
lines changed

23 files changed

+26
-26
lines changed

allocative/allocative/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Meta"]
33
description = "Inspect rust object tree and output it as flamegraph"
44
documentation = "https://docs.rs/allocative"
5-
edition = "2021"
5+
edition = "2024"
66
license = { workspace = true }
77
name = "allocative"
88
repository = "https://github.com/facebookexperimental/allocative"

allocative/allocative_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Meta"]
33
description = "Implementation of derive(Allocative) for allocative crate"
44
documentation = "https://docs.rs/allocative"
5-
edition = "2021"
5+
edition = "2024"
66
license = { workspace = true }
77
name = "allocative_derive"
88
repository = "https://github.com/facebookexperimental/allocative"

gazebo/cmp_any/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["Facebook"]
33
categories = ["rust-patterns"]
44
description = "Comparison for &dyn types"
55
documentation = "https://docs.rs/cmp_any"
6-
edition = "2021"
6+
edition = "2024"
77
license = { workspace = true }
88
name = "cmp_any"
99
repository = "https://github.com/facebookincubator/gazebo"

gazebo/display_container/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["Facebook"]
33
categories = ["rust-patterns"]
44
description = "Utilities to implement Display"
55
documentation = "https://docs.rs/display_container"
6-
edition = "2021"
6+
edition = "2024"
77
license = { workspace = true }
88
name = "display_container"
99
repository = "https://github.com/facebookincubator/gazebo"

gazebo/dupe/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["Facebook"]
33
categories = ["rust-patterns"]
44
description = "Marker for types which are cheap to clone"
55
documentation = "https://docs.rs/dupe"
6-
edition = "2021"
6+
edition = "2024"
77
license = { workspace = true }
88
name = "dupe"
99
repository = "https://github.com/facebookincubator/gazebo"

gazebo/dupe_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["Facebook"]
33
categories = ["rust-patterns"]
44
description = "Derive Dupe"
55
documentation = "https://docs.rs/dupe"
6-
edition = "2021"
6+
edition = "2024"
77
license = { workspace = true }
88
name = "dupe_derive"
99
repository = "https://github.com/facebookincubator/gazebo"

gazebo/dupe_derive/src/clone.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn derive_clone_(input: proc_macro::TokenStream) -> proc_macro::TokenStream
1919

2020
let name = &input.ident;
2121
let body = duplicate_impl(&input.data, &quote! { ::std::clone::Clone::clone });
22-
let r#gen = quote! {
22+
let generated = quote! {
2323
// Clippy wants us to use Copy if we can - we prefer to be agnostic.
2424
// Add unknown_lints temporarily.
2525
#[allow(unknown_lints)]
@@ -30,5 +30,5 @@ pub fn derive_clone_(input: proc_macro::TokenStream) -> proc_macro::TokenStream
3030
}
3131
}
3232
};
33-
r#gen.into()
33+
generated.into()
3434
}

gazebo/dupe_derive/src/copy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ pub fn derive_copy_(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
1616
let (impl_generics, ty_generics, where_clause) = input.generics.split_for_impl();
1717

1818
let name = &input.ident;
19-
let r#gen = quote! {
19+
let generated = quote! {
2020
impl #impl_generics ::std::marker::Copy for #name #ty_generics #where_clause {
2121
}
2222
};
23-
r#gen.into()
23+
generated.into()
2424
}

gazebo/dupe_derive/src/dupe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn derive_dupe_explicit(
5757
name.span(),
5858
);
5959

60-
let r#gen = quote! {
60+
let generated = quote! {
6161
impl #impl_generics dupe::Dupe for #name #ty_generics #where_clause {
6262
}
6363

@@ -68,7 +68,7 @@ fn derive_dupe_explicit(
6868
}
6969
};
7070

71-
r#gen.into()
71+
generated.into()
7272
}
7373

7474
fn check_each_field_dupe<'a>(tys: impl IntoIterator<Item = &'a Type>) -> TokenStream {

gazebo/gazebo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["Facebook"]
33
categories = ["rust-patterns"]
44
description = "A collection of well-tested utilities"
55
documentation = "https://docs.rs/gazebo"
6-
edition = "2021"
6+
edition = "2024"
77
license = { workspace = true }
88
name = "gazebo"
99
repository = "https://github.com/facebookincubator/gazebo"

0 commit comments

Comments
 (0)