Skip to content

Commit 2bd72ec

Browse files
committed
Switch to 2024 edition
1 parent 07b08af commit 2bd72ec

File tree

18 files changed

+22
-23
lines changed

18 files changed

+22
-23
lines changed

audio-file/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT"
77
homepage = "https://github.com/gridbugs/caw.git"
88
repository = "https://github.com/gridbugs/caw.git"
99
documentation = "https://docs.rs/caw_audio_file"
10-
edition = "2021"
10+
edition = "2024"
1111

1212
[dependencies]
1313
caw_core = { version = "0.5", path = "../core" }

bevy/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "MIT"
66
homepage = "https://github.com/gridbugs/caw.git"
77
repository = "https://github.com/gridbugs/caw.git"
88
documentation = "https://docs.rs/caw_bevy"
9-
edition = "2021"
9+
edition = "2024"
1010

1111
[dependencies]
1212
bevy = { version = "0.15", default-features = false, features = [ "bevy_window" ] }

builder-proc-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT"
77
homepage = "https://github.com/gridbugs/caw.git"
88
repository = "https://github.com/gridbugs/caw.git"
99
documentation = "https://docs.rs/caw_builder_proc_macros"
10-
edition = "2021"
10+
edition = "2024"
1111

1212
[lib]
1313
proc-macro = true

builder-proc-macros/src/lib.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ use proc_macro2::Span;
44
use quote::{format_ident, quote};
55
use std::collections::HashMap;
66
use syn::{
7-
parse_macro_input, parse_quote,
8-
punctuated::Punctuated,
9-
token::{Comma, Plus},
107
AngleBracketedGenericArguments, Attribute, Expr, ExprLit, GenericArgument,
118
GenericParam, Generics, Ident, ItemStruct, Lit, LitStr, Meta, Pat, PatRest,
129
Path, PathArguments, PathSegment, Token, Type, TypeParam, TypeParamBound,
13-
TypePath, WhereClause, WherePredicate,
10+
TypePath, WhereClause, WherePredicate, parse_macro_input, parse_quote,
11+
punctuated::Punctuated,
12+
token::{Comma, Plus},
1413
};
1514

1615
fn convert_snake_to_camel(ident: Ident) -> Ident {
@@ -307,7 +306,7 @@ pub fn builder(input: TokenStream) -> TokenStream {
307306
let new_fn_return_type_generics = {
308307
let mut args = Punctuated::new();
309308
for generic_param in &input.generics.params {
310-
if let GenericParam::Type(ref type_param) = generic_param {
309+
if let GenericParam::Type(type_param) = generic_param {
311310
let ty = if let Some(default_type) =
312311
generic_field_type_to_default_type.get(&type_param.ident)
313312
{
@@ -343,7 +342,7 @@ pub fn builder(input: TokenStream) -> TokenStream {
343342
let make_setter_return_type = |type_param_ident| {
344343
let mut args = Punctuated::new();
345344
for generic_param in &input.generics.params {
346-
if let GenericParam::Type(ref type_param) = generic_param {
345+
if let GenericParam::Type(type_param) = generic_param {
347346
let type_ident = if &type_param.ident == type_param_ident {
348347
// The current type parameter is the one that
349348
// should be replaced by the argument type of

caw/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT"
77
homepage = "https://github.com/gridbugs/caw.git"
88
repository = "https://github.com/gridbugs/caw.git"
99
documentation = "https://docs.rs/caw"
10-
edition = "2021"
10+
edition = "2024"
1111

1212
[features]
1313
web = ["caw_player/web", "caw_keyboard/web", "caw_modules/web", "caw_utils/web"]

computer-keyboard/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT"
77
homepage = "https://github.com/gridbugs/caw.git"
88
repository = "https://github.com/gridbugs/caw.git"
99
documentation = "https://docs.rs/caw_computer_keyboard"
10-
edition = "2021"
10+
edition = "2024"
1111

1212
[dependencies]
1313
caw_keyboard = { version = "0.4", path = "../keyboard" }

computer-keyboard/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ fn opinionated_note_by_key(start_note: Note) -> Vec<(Key, Note)> {
317317
pub fn opinionated_key_events<S>(
318318
keyboard: &Keyboard<S>,
319319
start_note: Note,
320-
) -> Sig<impl SigT<Item = KeyEvents>>
320+
) -> Sig<impl SigT<Item = KeyEvents> + use<S>>
321321
where
322322
S: SigT<Item = bool> + Clone,
323323
{

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ license = "MIT"
77
homepage = "https://github.com/gridbugs/caw.git"
88
repository = "https://github.com/gridbugs/caw.git"
99
documentation = "https://docs.rs/caw_core"
10-
edition = "2021"
10+
edition = "2024"

interactive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT"
77
homepage = "https://github.com/gridbugs/caw.git"
88
repository = "https://github.com/gridbugs/caw.git"
99
documentation = "https://docs.rs/caw_interactive"
10-
edition = "2021"
10+
edition = "2024"
1111

1212
[dependencies]
1313
anyhow = "1.0"

keyboard/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "MIT"
77
homepage = "https://github.com/gridbugs/caw.git"
88
repository = "https://github.com/gridbugs/caw.git"
99
documentation = "https://docs.rs/caw_keyboard"
10-
edition = "2021"
10+
edition = "2024"
1111

1212
[features]
1313
web = ["getrandom/js"]

0 commit comments

Comments
 (0)