Remove trailing whitespace for fn types /w non-unit return
This commit is contained in:
parent
8fd95df54a
commit
0142191e51
@ -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()
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user