1
0
Fork 0
mirror of https://codeberg.org/icewind/bitbuffer.git synced 2026-06-03 16:44:06 +02:00

update syn and friends to 1.0

This commit is contained in:
Robin Appelman 2020-01-08 12:49:01 +01:00
commit 112e95cd74
2 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "bitstream_reader_derive"
version = "0.7.0"
version = "0.7.1"
authors = ["Robin Appelman <robin@icewind.nl>"]
edition = "2018"
description = "Reading bit sequences from a byte slice"
@ -12,10 +12,10 @@ name = "bitstream_reader_derive"
proc-macro = true
[dependencies]
syn = "0.15"
quote = "0.6"
proc-macro2 = "0.4"
syn_util = "0.3"
syn = "1.0"
quote = "1.0"
proc-macro2 = "1.0"
syn_util = "0.4"
[dev-dependencies]
bitstream_reader = { version = "0.7", path = ".." }

View file

@ -515,7 +515,7 @@ enum Discriminant {
impl From<Lit> for Discriminant {
fn from(lit: Lit) -> Self {
match lit {
Lit::Int(lit) => Discriminant::Int(lit.value() as usize),
Lit::Int(lit) => Discriminant::Int(lit.base10_parse::<usize>().unwrap()),
Lit::Str(lit) => match lit.value().as_str() {
"_" => Discriminant::Wildcard,
_ => panic!("discriminant is required to be an integer literal or \"_\""),