Skip to content

Commit b874cd8

Browse files
committed
Upgrade to 2024 edition
1 parent 00d3c30 commit b874cd8

File tree

17 files changed

+32
-29
lines changed

17 files changed

+32
-29
lines changed

json_typegen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://typegen.vestera.as"
1010
repository = "https://github.com/evestera/json_typegen"
1111
documentation = "https://docs.rs/json_typegen"
1212
readme = "README.md"
13-
edition = "2021"
13+
edition = "2024"
1414

1515
[features]
1616
default = ["remote-samples", "local-samples"]

json_typegen_cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://typegen.vestera.as"
1010
repository = "https://github.com/evestera/json_typegen"
1111
documentation = "https://docs.rs/json_typegen_cli"
1212
readme = "README.md"
13-
edition = "2021"
13+
edition = "2024"
1414

1515
[dependencies]
1616
clap = "2.33.3"

json_typegen_cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use clap::{App, Arg};
22
use json_typegen_shared::internal_util::display_error_with_causes;
3-
use json_typegen_shared::{codegen, codegen_from_macro, parse, Options, OutputMode};
3+
use json_typegen_shared::{Options, OutputMode, codegen, codegen_from_macro, parse};
44
use std::fs::OpenOptions;
55
use std::io::{self, Read, Write};
66

json_typegen_demo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.7.0"
44
authors = ["Erik Vesteraas <[email protected]>"]
55
license = "MIT/Apache-2.0"
66
publish = false
7-
edition = "2021"
7+
edition = "2024"
88

99
[dependencies]
1010
serde = "1.0"

json_typegen_shared/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ homepage = "https://typegen.vestera.as"
1010
repository = "https://github.com/evestera/json_typegen"
1111
documentation = "https://docs.rs/json_typegen_shared"
1212
readme = "README.md"
13-
edition = "2021"
13+
edition = "2024"
1414
exclude = ["/benches/"]
1515

1616
[features]

json_typegen_shared/benches/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
extern crate json_typegen_shared;
1010
extern crate test;
1111

12-
use json_typegen_shared::{codegen, Options};
12+
use json_typegen_shared::{Options, codegen};
1313
use test::Bencher;
1414

1515
macro_rules! file_bench {

json_typegen_shared/src/generation/json_schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use linked_hash_map::LinkedHashMap;
22

3-
use crate::generation::value::{pretty_print_value, Value};
3+
use crate::generation::value::{Value, pretty_print_value};
44
use crate::options::Options;
55
use crate::shape::{self, Shape};
66
use crate::to_singular::to_singular;

json_typegen_shared/src/generation/kotlin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use linked_hash_map::LinkedHashMap;
22
use std::collections::HashSet;
33

4+
use crate::OutputMode;
45
use crate::options::{ImportStyle, Options, StringTransform};
56
use crate::shape::{self, Shape};
67
use crate::to_singular::to_singular;
78
use crate::util::{kebab_case, lower_camel_case, snake_case, type_case};
8-
use crate::OutputMode;
99

1010
struct Ctxt {
1111
options: Options,

json_typegen_shared/src/generation/shape.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use linked_hash_map::LinkedHashMap;
22

3-
use crate::generation::value::{pretty_print_value, Value};
3+
use crate::generation::value::{Value, pretty_print_value};
44
use crate::options::Options;
55
use crate::shape::{self, Shape};
66
use crate::util::string_hashmap;

json_typegen_shared/src/generation/typescript_type_alias.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use linked_hash_map::LinkedHashMap;
22

33
use crate::generation::typescript::{collapse_option, is_ts_identifier};
44
use crate::options::Options;
5-
use crate::shape::{self, common_shape, Shape};
5+
use crate::shape::{self, Shape, common_shape};
66

77
pub struct Ctxt {
88
options: Options,

0 commit comments

Comments
 (0)