Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
dotenv_codegen did not previously use clippy groups.
This commit corrects the only warning.
  • Loading branch information
allan2 committed Oct 10, 2024
1 parent 9b3ed28 commit c6c61dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dotenv_codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use proc_macro::TokenStream;
use proc_macro2::TokenStream as TokenStream2;
use quote::quote;
use std::env::{self, VarError};
use syn::{parse::Parser, punctuated::Punctuated, spanned::Spanned, Token};
use syn::{parse::Parser, punctuated::Punctuated, spanned::Spanned, LitStr, Token};

#[proc_macro]
/// TODO: add safety warning
Expand Down Expand Up @@ -61,7 +61,7 @@ fn expand_env(input_raw: TokenStream2) -> syn::Result<TokenStream2> {
format!("environment variable `{var_name}` was not valid Unicode: {s:?}",)
}
},
|lit| lit.value(),
LitStr::value,
),
)),
}
Expand Down

0 comments on commit c6c61dc

Please sign in to comment.