diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-06-16 12:41:24 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2019-06-18 18:10:26 +0300 |
| commit | ea78c3aa33c09f987c4ad0d87b9a39a0d065d67c (patch) | |
| tree | 09d4c7285c9dcade08d278eb3d46bb8d3c8df9e1 /src/libsyntax_ext/deriving/generic | |
| parent | 4c4fc7512eff62f5cc63a1a30f4474db003884c9 (diff) | |
| download | rust-ea78c3aa33c09f987c4ad0d87b9a39a0d065d67c.tar.gz rust-ea78c3aa33c09f987c4ad0d87b9a39a0d065d67c.zip | |
Run `rustfmt --file-lines ...` for changes from previous commits.
Diffstat (limited to 'src/libsyntax_ext/deriving/generic')
| -rw-r--r-- | src/libsyntax_ext/deriving/generic/mod.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libsyntax_ext/deriving/generic/mod.rs b/src/libsyntax_ext/deriving/generic/mod.rs index 3edf7726ec6..444cf1263ce 100644 --- a/src/libsyntax_ext/deriving/generic/mod.rs +++ b/src/libsyntax_ext/deriving/generic/mod.rs @@ -339,11 +339,12 @@ pub fn combine_substructure<'a>(f: CombineSubstructureFunc<'a>) /// This method helps to extract all the type parameters referenced from a /// type. For a type parameter `<T>`, it looks for either a `TyPath` that /// is not global and starts with `T`, or a `TyQPath`. -fn find_type_parameters(ty: &ast::Ty, - ty_param_names: &[ast::Name], - span: Span, - cx: &ExtCtxt<'_>) - -> Vec<P<ast::Ty>> { +fn find_type_parameters( + ty: &ast::Ty, + ty_param_names: &[ast::Name], + span: Span, + cx: &ExtCtxt<'_>, +) -> Vec<P<ast::Ty>> { use syntax::visit; struct Visitor<'a, 'b> { |
