Skip to content

Commit c361a9b

Browse files
authored
Also update syn to 2.0 in mirror-mirror (#113)
### Checklist * [x] I have read the [Contributor Guide](../../CONTRIBUTING.md) * [x] I have read and agree to the [Code of Conduct](../../CODE_OF_CONDUCT.md) * [x] I have added a description of my changes and why I'd like them included in the section below ### Description of Changes Also update syn to 2.0 in mirror-mirror I forgot about `SimpleTypeName`. Also bumped speedy.
1 parent a14f45f commit c361a9b

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

crates/mirror-mirror/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ mirror-mirror-macros = { path = "../mirror-mirror-macros", version = "0.1.3" }
2525
once_cell = { version = "1.16", features = ["alloc", "race", "critical-section"], default-features = false }
2626
ordered-float = { version = "3.4.0", default-features = false }
2727
serde = { version = "1.0.158", default-features = false, features = ["derive", "alloc"], optional = true }
28-
speedy = { version = "0.8", optional = true }
29-
syn = { version = "1.0.102", features = ["full", "parsing"], optional = true }
28+
speedy = { version = "0.8.6", optional = true }
29+
syn = { version = "2.0", features = ["full", "parsing"], optional = true }
3030
glam = { version = "0.22", optional = true }
3131
macaw = { version = "0.18", optional = true }
3232

crates/mirror-mirror/src/type_info/simple_type_name.rs

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::wildcard_in_or_patterns)]
2+
13
use core::{any::type_name, fmt};
24

35
use alloc::borrow::Cow;
@@ -156,12 +158,10 @@ impl<'a, 'b> WriteAst<Expr> for TypeWriter<'a, 'b> {
156158
Expr::Lit(inner) => self.write(inner),
157159
Expr::Array(_)
158160
| Expr::Assign(_)
159-
| Expr::AssignOp(_)
160161
| Expr::Async(_)
161162
| Expr::Await(_)
162163
| Expr::Binary(_)
163164
| Expr::Block(_)
164-
| Expr::Box(_)
165165
| Expr::Break(_)
166166
| Expr::Call(_)
167167
| Expr::Cast(_)
@@ -187,12 +187,13 @@ impl<'a, 'b> WriteAst<Expr> for TypeWriter<'a, 'b> {
187187
| Expr::Try(_)
188188
| Expr::TryBlock(_)
189189
| Expr::Tuple(_)
190-
| Expr::Type(_)
191190
| Expr::Unary(_)
192191
| Expr::Unsafe(_)
193192
| Expr::Verbatim(_)
194193
| Expr::While(_)
195194
| Expr::Yield(_)
195+
| Expr::Const(_)
196+
| Expr::Infer(_)
196197
| _ => Err(fmt::Error),
197198
}
198199
}
@@ -212,7 +213,7 @@ impl<'a, 'b> WriteAst<Lit> for TypeWriter<'a, 'b> {
212213
Lit::Int(inner) => self.write(inner),
213214
Lit::Bool(inner) => self.write(inner),
214215
Lit::Float(inner) => self.write(inner),
215-
Lit::Str(_) | Lit::ByteStr(_) | Lit::Byte(_) | Lit::Char(_) | Lit::Verbatim(_) => {
216+
Lit::Str(_) | Lit::ByteStr(_) | Lit::Byte(_) | Lit::Char(_) | Lit::Verbatim(_) | _ => {
216217
Err(fmt::Error)
217218
}
218219
}
@@ -313,8 +314,10 @@ impl<'a, 'b> WriteAst<GenericArgument> for TypeWriter<'a, 'b> {
313314
GenericArgument::Type(inner) => self.write(inner),
314315
GenericArgument::Const(inner) => self.write(inner),
315316
GenericArgument::Lifetime(_)
316-
| GenericArgument::Binding(_)
317-
| GenericArgument::Constraint(_) => Err(fmt::Error),
317+
| GenericArgument::AssocType(_)
318+
| GenericArgument::AssocConst(_)
319+
| GenericArgument::Constraint(_)
320+
| _ => Err(fmt::Error),
318321
}
319322
}
320323
}

deny.toml

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ deny = [
88
]
99

1010
skip = [
11-
# speedy-derive
12-
{ name = "syn" }
1311
]
1412

1513
[sources]

0 commit comments

Comments
 (0)