Skip to content

Commit b821466

Browse files
committed
Update edition
1 parent 6ae9f22 commit b821466

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ authors = [
77
"Embark <[email protected]>",
88
"Jake Shadle <[email protected]>",
99
]
10-
edition = "2021"
10+
edition = "2024"
1111
license = "MIT OR Apache-2.0"
1212
readme = "README.md"
13-
rust-version = "1.70.0"
13+
rust-version = "1.85.0"
1414
documentation = "https://docs.rs/cfg-expr"
1515
homepage = "https://github.com/EmbarkStudios/cfg-expr"
1616
keywords = ["cargo", "rustc", "cfg"]

examples/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use cfg_expr::{targets::get_builtin_target_by_triple, Expression, Predicate};
1+
use cfg_expr::{Expression, Predicate, targets::get_builtin_target_by_triple};
22

33
fn main() {
44
let specific = Expression::parse(

src/expr.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ impl TargetMatcher for target_lexicon::Triple {
100100
#[allow(clippy::cognitive_complexity)]
101101
#[allow(clippy::match_same_arms)]
102102
fn matches(&self, tp: &TargetPredicate) -> bool {
103-
use target_lexicon::*;
104103
use TargetPredicate::{
105104
Abi, Arch, Endian, Env, Family, HasAtomic, Os, Panic, PointerWidth, Vendor,
106105
};
106+
use target_lexicon::*;
107107

108108
const NUTTX: target_lexicon::Vendor =
109109
target_lexicon::Vendor::Custom(target_lexicon::CustomVendor::Static("nuttx"));
@@ -265,9 +265,9 @@ impl TargetMatcher for target_lexicon::Triple {
265265
Family(fam) => {
266266
use OperatingSystem::{
267267
Aix, AmdHsa, Bitrig, Cloudabi, Cuda, Darwin, Dragonfly, Emscripten, Espidf,
268-
Freebsd, Fuchsia, Haiku, Hermit, Horizon, Hurd, Illumos, L4re, Linux, MacOSX,
269-
Nebulet, Netbsd, None_, Openbsd, Redox, Solaris, TvOS, Uefi, Unknown, VisionOS,
270-
VxWorks, Wasi, WasiP1, WasiP2, WatchOS, Windows, IOS,
268+
Freebsd, Fuchsia, Haiku, Hermit, Horizon, Hurd, IOS, Illumos, L4re, Linux,
269+
MacOSX, Nebulet, Netbsd, None_, Openbsd, Redox, Solaris, TvOS, Uefi, Unknown,
270+
VisionOS, VxWorks, Wasi, WasiP1, WasiP2, WatchOS, Windows,
271271
};
272272

273273
match self.operating_system {

src/expr/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use crate::{
22
error::{ParseError, Reason},
33
expr::{
4-
lexer::{Lexer, Token},
54
ExprNode, Expression, Func, InnerPredicate,
5+
lexer::{Lexer, Token},
66
},
77
};
88
use smallvec::SmallVec;
@@ -200,7 +200,7 @@ impl Expression {
200200
"target_pointer_width",
201201
"target_vendor",
202202
]),
203-
})
203+
});
204204
}
205205
};
206206

tests/eval.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use cfg_expr::{
2-
expr::{Predicate, TargetMatcher},
3-
targets::{get_builtin_target_by_triple, ALL_BUILTINS as all},
42
Expression, TargetPredicate,
3+
expr::{Predicate, TargetMatcher},
4+
targets::{ALL_BUILTINS as all, get_builtin_target_by_triple},
55
};
66

77
struct Target {

tests/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use cfg_expr::{
2+
Expression, ParseError,
23
error::Reason,
34
expr::{Predicate as P, TargetPredicate as TP},
45
targets::*,
5-
Expression, ParseError,
66
};
77

88
macro_rules! test_validate {

0 commit comments

Comments
 (0)