Skip to content

Commit 2502811

Browse files
committed
Revert formatting change in rustfmt
1 parent 4e79067 commit 2502811

File tree

1 file changed

+1
-5
lines changed
  • src/tools/rustfmt/config_proc_macro/src

1 file changed

+1
-5
lines changed

src/tools/rustfmt/config_proc_macro/src/attrs.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@ fn get_name_value_str_lit(attr: &syn::Attribute, name: &str) -> Option<String> {
6868
match &attr.meta {
6969
syn::Meta::NameValue(syn::MetaNameValue {
7070
path,
71-
value:
72-
syn::Expr::Lit(syn::ExprLit {
73-
lit: syn::Lit::Str(lit_str),
74-
..
75-
}),
71+
value: syn::Expr::Lit(syn::ExprLit { lit: syn::Lit::Str(lit_str), .. }),
7672
..
7773
}) if path.is_ident(name) => Some(lit_str.value()),
7874
_ => None,

0 commit comments

Comments
 (0)