From 242be3631e6f2c581614b362ff1a572c7ffb8ff6 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 23 Dec 2019 17:53:35 +0200 Subject: Omit closure parameters --- crates/ra_hir_ty/src/display.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crates/ra_hir_ty/src/display.rs') diff --git a/crates/ra_hir_ty/src/display.rs b/crates/ra_hir_ty/src/display.rs index dcca1bace..37def7c03 100644 --- a/crates/ra_hir_ty/src/display.rs +++ b/crates/ra_hir_ty/src/display.rs @@ -10,7 +10,7 @@ pub struct HirFormatter<'a, 'b, DB> { buf: String, curr_size: usize, max_size: Option, - should_display_default_types: bool, + omit_verbose_types: bool, } pub trait HirDisplay { @@ -20,7 +20,7 @@ pub trait HirDisplay { where Self: Sized, { - HirDisplayWrapper(db, self, None, true) + HirDisplayWrapper(db, self, None, false) } fn display_truncated<'a, DB>( @@ -31,7 +31,7 @@ pub trait HirDisplay { where Self: Sized, { - HirDisplayWrapper(db, self, max_size, false) + HirDisplayWrapper(db, self, max_size, true) } } @@ -74,8 +74,8 @@ where } } - pub fn should_display_default_types(&self) -> bool { - self.should_display_default_types + pub fn omit_verbose_types(&self) -> bool { + self.omit_verbose_types } } @@ -93,7 +93,7 @@ where buf: String::with_capacity(20), curr_size: 0, max_size: self.2, - should_display_default_types: self.3, + omit_verbose_types: self.3, }) } } -- cgit v1.2.3