diff --git a/cli-table-derive/Cargo.toml b/cli-table-derive/Cargo.toml index 1d84103..596e4ff 100644 --- a/cli-table-derive/Cargo.toml +++ b/cli-table-derive/Cargo.toml @@ -20,7 +20,7 @@ doc = [] [dependencies] proc-macro2 = "1.0.94" -syn = "2.0.100" +syn = "3.0" quote = "1.0.40" [lib] diff --git a/cli-table-derive/src/utils.rs b/cli-table-derive/src/utils.rs index 58a573d..3938905 100644 --- a/cli-table-derive/src/utils.rs +++ b/cli-table-derive/src/utils.rs @@ -16,7 +16,7 @@ pub fn get_attributes(attrs: &[Attribute]) -> Result> { .ok() .map(|v| v.parse()) .transpose()? - .unwrap_or(Lit::from(LitBool { + .unwrap_or(Lit::Bool(LitBool { value: true, span: path.span(), }));