mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 07:00:55 +00:00
Wrap comment at 80 columns
This commit is contained in:
parent
89a4558056
commit
7c74c3e508
1 changed files with 3 additions and 2 deletions
|
@ -121,8 +121,9 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for TriviallyCopyPassByRef {
|
||||||
let fn_sig = cx.tcx.fn_sig(fn_def_id);
|
let fn_sig = cx.tcx.fn_sig(fn_def_id);
|
||||||
let fn_sig = cx.tcx.erase_late_bound_regions(&fn_sig);
|
let fn_sig = cx.tcx.erase_late_bound_regions(&fn_sig);
|
||||||
|
|
||||||
// Use lifetimes to determine if we're returning a reference to the argument. In that case
|
// Use lifetimes to determine if we're returning a reference to the
|
||||||
// we can't switch to pass-by-value as the argument will not live long enough.
|
// argument. In that case we can't switch to pass-by-value as the
|
||||||
|
// argument will not live long enough.
|
||||||
let output_lt = if let TypeVariants::TyRef(output_lt, _, _) = fn_sig.output().sty {
|
let output_lt = if let TypeVariants::TyRef(output_lt, _, _) = fn_sig.output().sty {
|
||||||
Some(output_lt)
|
Some(output_lt)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue