Skip to content

Commit 21cdfec

Browse files
LukasKalbertodtogoffart
authored andcommitted
Update litrs dependency to v1.0
1 parent bb0dea8 commit 21cdfec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ default = []
2424
self-test = []
2525

2626
[dependencies]
27-
litrs = { version = "0.4.1", default-features = false }
27+
litrs = "1.0.0"

lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ fn parse_args(input: TokenStream) -> Result<Args, TokenStream> {
215215
if let Some(tt) = token_trees.next() {
216216
match litrs::StringLit::<String>::try_from(&tt) {
217217
Ok(string_lit) if string_lit.value().contains("{feature}") => {
218-
feature_label = string_lit.value().to_string()
218+
feature_label = string_lit.into_value()
219219
}
220220
_ => {
221221
return Err(compile_error(

0 commit comments

Comments
 (0)