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() {
|
||||
return None;
|
||||
}
|
||||
target?;
|
||||
let mut t = target.unwrap();
|
||||
let ret = Rect {
|
||||
x: t.x,
|
||||
|
|
Loading…
Reference in New Issue