Make output type in ast::FnDecl optional
This commit is contained in:
@@ -557,6 +557,7 @@ impl fmt::String for clean::FunctionRetTy {
|
||||
match *self {
|
||||
clean::Return(clean::Tuple(ref tys)) if tys.is_empty() => Ok(()),
|
||||
clean::Return(ref ty) => write!(f, " -> {}", ty),
|
||||
clean::DefaultReturn => Ok(()),
|
||||
clean::NoReturn => write!(f, " -> !")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user