From 15d5964e8bedeb096ba99ce4119d132d92e80cea Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Mon, 20 Oct 2025 12:37:16 +0200 Subject: [PATCH] Update litrs dependency to v1.0 --- Cargo.toml | 2 +- lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(