mirror of
https://github.com/servo/servo.git
synced 2025-06-11 01:50:10 +00:00
Move '&&' to the end of the previous line.
Following https://github.com/servo/servo/issues/10692 this is just a formating change to satisfy a new tidy requirement of not having '&&' at the beginning of a line.
This commit is contained in:
parent
01b111c43e
commit
924d804583
11 changed files with 29 additions and 29 deletions
|
@ -28,8 +28,8 @@ impl LateLintPass for TransmutePass {
|
|||
match expr.node {
|
||||
hir::ExprPath(_, ref path) => {
|
||||
if path.segments.last()
|
||||
.map_or(false, |ref segment| segment.identifier.name.as_str() == "transmute")
|
||||
&& args.len() == 1 {
|
||||
.map_or(false, |ref segment| segment.identifier.name.as_str() == "transmute") &&
|
||||
args.len() == 1 {
|
||||
let tcx = cx.tcx;
|
||||
cx.span_lint(TRANSMUTE_TYPE_LINT, ex.span,
|
||||
&format!("Transmute to {:?} from {:?} detected",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue