From 47cfdb4aa3f32a2288edbbc49aa107f4436593a7 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Tue, 29 Oct 2019 18:14:15 +0100 Subject: Don't add a space after the opening brace in autoimport --- crates/ra_assists/src/assists/add_import.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crates') diff --git a/crates/ra_assists/src/assists/add_import.rs b/crates/ra_assists/src/assists/add_import.rs index c8b9809f4..363ade016 100644 --- a/crates/ra_assists/src/assists/add_import.rs +++ b/crates/ra_assists/src/assists/add_import.rs @@ -545,7 +545,7 @@ fn make_assist_add_nested_import( if add_colon_colon { buf.push_str("::"); } - buf.push_str("{ "); + buf.push_str("{"); if add_self { buf.push_str("self, "); } @@ -734,7 +734,7 @@ impl std::io<|> for Foo { } ", " -use std::{ io, fmt}; +use std::{io, fmt}; impl io<|> for Foo { } @@ -753,7 +753,7 @@ impl std::fmt::Debug<|> for Foo { } ", " -use std::fmt::{ self, Debug, }; +use std::fmt::{self, Debug, }; impl Debug<|> for Foo { } @@ -772,7 +772,7 @@ impl std::fmt<|> for Foo { } ", " -use std::fmt::{ self, Debug}; +use std::fmt::{self, Debug}; impl fmt<|> for Foo { } @@ -848,7 +848,7 @@ impl std::fmt::nested::Display<|> for Foo { } ", " -use std::fmt::{ nested::Display, Debug}; +use std::fmt::{nested::Display, Debug}; impl Display<|> for Foo { } @@ -867,7 +867,7 @@ impl std::fmt::Display<|> for Foo { } ", " -use std::fmt::{ Display, nested::Debug}; +use std::fmt::{Display, nested::Debug}; impl Display<|> for Foo { } -- cgit v1.2.3