From d0537cda9eb55e7a596a0cf05e0c1423e8c430a8 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Tue, 24 Dec 2019 19:52:48 +0800 Subject: Formatting --- crates/ra_hir_def/src/data.rs | 2 -- crates/ra_hir_def/src/path.rs | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/ra_hir_def/src/data.rs b/crates/ra_hir_def/src/data.rs index 0a282f31b..a1b31c411 100644 --- a/crates/ra_hir_def/src/data.rs +++ b/crates/ra_hir_def/src/data.rs @@ -80,9 +80,7 @@ impl FunctionData { fn desugar_future_path(orig: TypeRef) -> Path { let path = path![std::future::Future]; - let mut generic_args: Vec<_> = std::iter::repeat(None).take(path.segments.len() - 1).collect(); - let mut last = GenericArgs::empty(); last.bindings.push((name![Output], orig)); generic_args.push(Some(Arc::new(last))); diff --git a/crates/ra_hir_def/src/path.rs b/crates/ra_hir_def/src/path.rs index bf401df35..107d2d799 100644 --- a/crates/ra_hir_def/src/path.rs +++ b/crates/ra_hir_def/src/path.rs @@ -131,7 +131,10 @@ impl Path { } /// Converts a known mod path to `Path`. - pub(crate) fn from_known_path(path: ModPath, generic_args: Vec>>) -> Path { + pub(crate) fn from_known_path( + path: ModPath, + generic_args: Vec>>, + ) -> Path { Path { type_anchor: None, mod_path: path, generic_args } } -- cgit v1.2.3