remove useless ?s (clippy::needless_question_marks)
Example code: ``` fn opts() -> Option<String> { let s: Option<String> = Some(String::new()); Some(s?) // this can just be "s" } ```
This commit is contained in:
parent
5ef21063f0
commit
f7b834831f
7 changed files with 11 additions and 18 deletions
|
@ -43,7 +43,7 @@ where
|
|||
info!("fully_perform({:?})", self);
|
||||
}
|
||||
|
||||
scrape_region_constraints(infcx, || Ok((self.closure)(infcx)?))
|
||||
scrape_region_constraints(infcx, || (self.closure)(infcx))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue