diff --git a/Cargo.toml b/Cargo.toml index b4e6f22..aa8bd22 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,4 +24,4 @@ default = [] self-test = [] [dependencies] -litrs = { version = "0.4.1", default-features = false } +litrs = "1.0.0" diff --git a/lib.rs b/lib.rs index 3fc9886..5447f60 100644 --- a/lib.rs +++ b/lib.rs @@ -215,7 +215,7 @@ fn parse_args(input: TokenStream) -> Result { if let Some(tt) = token_trees.next() { match litrs::StringLit::::try_from(&tt) { Ok(string_lit) if string_lit.value().contains("{feature}") => { - feature_label = string_lit.value().to_string() + feature_label = string_lit.into_value() } _ => { return Err(compile_error(