don't use question mark operator on Err(), return the Result directly instead.
This commit is contained in:
parent
0eb878d2aa
commit
a8a153b1a9
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ impl Sig for ast::Item {
|
|||
sig.text.push_str(" = ");
|
||||
let ty = match ty {
|
||||
Some(ty) => ty.make(offset + sig.text.len(), id, scx)?,
|
||||
None => Err("Ty")?,
|
||||
None => return Err("Ty"),
|
||||
};
|
||||
sig.text.push_str(&ty.text);
|
||||
sig.text.push(';');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue