Use question mark operator idiom (question_mark)
This commit is contained in:
parent
c27425750d
commit
35f29705b3
|
@ -57,9 +57,7 @@ impl Atlas {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if target.is_none() {
|
target?;
|
||||||
return None;
|
|
||||||
}
|
|
||||||
let mut t = target.unwrap();
|
let mut t = target.unwrap();
|
||||||
let ret = Rect {
|
let ret = Rect {
|
||||||
x: t.x,
|
x: t.x,
|
||||||
|
|
Loading…
Reference in New Issue