Remove trailing whitespace for fn types /w non-unit return

This commit is contained in:
Marcus Klaas 2016-03-27 20:20:51 +02:00
parent 8fd95df54a
commit 0142191e51
3 changed files with 7 additions and 1 deletions

View File

@ -268,7 +268,7 @@ fn format_function_type<'a, I>(inputs: I,
FunctionRetTy::Default(..) => String::new(),
};
let infix = if output.len() + list_str.len() > width {
let infix = if output.len() > 0 && output.len() + list_str.len() > width {
format!("\n{}", (offset - 1).to_string(context.config))
} else {
String::new()

View File

@ -25,3 +25,5 @@
pub type Exactly100CharstoEqualWhereTest<T, U, PARAMET> where T: Clone + Ord + Eq + SomeOtherTrait = Option<T>;
pub type Exactly101CharstoEqualWhereTest<T, U, PARAMETE> where T: Clone + Ord + Eq + SomeOtherTrait = Option<T>;
type RegisterPlugin = unsafe fn(pt: *const c_char, plugin: *mut c_void, data: *mut CallbackData);

View File

@ -49,3 +49,7 @@
pub type Exactly101CharstoEqualWhereTest<T, U, PARAMETE>
where T: Clone + Ord + Eq + SomeOtherTrait = Option<T>;
type RegisterPlugin = unsafe fn(pt: *const c_char,
plugin: *mut c_void,
data: *mut CallbackData);