Address comments
This commit is contained in:
parent
7690fe3bc6
commit
2baee88bdb
4 changed files with 52 additions and 117 deletions
|
@ -276,10 +276,10 @@ impl<'tcx> LateLintPass<'tcx> for UnusedResults {
|
|||
{
|
||||
let def_id = trait_ref.def_id;
|
||||
is_def_must_use(cx, def_id, span)
|
||||
.map(|inner| MustUsePath::TraitObject(Box::new(inner)))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
.map(|inner| MustUsePath::TraitObject(Box::new(inner)))
|
||||
}),
|
||||
ty::Tuple(tys) => {
|
||||
let elem_exprs = if let hir::ExprKind::Tup(elem_exprs) = expr.kind {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue