Skip to content

Commit 2caa306

Browse files
author
Oliver Scherer
committed
Rustfmt
1 parent 196ed41 commit 2caa306

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/lib.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -561,11 +561,13 @@ pub fn one(input: TokenStream) -> TokenStream {
561561
.into()
562562
}
563563

564-
fn split_for_impl(generics: &syn::Generics) -> (syn::ImplGenerics, syn::TypeGenerics, impl quote::ToTokens) {
564+
fn split_for_impl(
565+
generics: &syn::Generics,
566+
) -> (syn::ImplGenerics, syn::TypeGenerics, impl quote::ToTokens) {
565567
let (impl_, type_, where_) = generics.split_for_impl();
566568
let where_ = match where_ {
567-
Some(where_) => quote!{ #where_, },
568-
None => quote!{ where },
569+
Some(where_) => quote! { #where_, },
570+
None => quote! { where },
569571
};
570572
(impl_, type_, where_)
571573
}

tests/generic_newtype.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ use std::ops::Neg;
2020
Num,
2121
Float,
2222
)]
23-
struct MyThing<T: Cake>(T) where T: Lie;
23+
struct MyThing<T: Cake>(T)
24+
where
25+
T: Lie;
2426

2527
trait Cake {}
2628
trait Lie {}

0 commit comments

Comments
 (0)