Use question mark operator idiom (question_mark)

This commit is contained in:
ice_iix 2020-07-02 16:53:27 -07:00
parent c27425750d
commit 35f29705b3
1 changed files with 1 additions and 3 deletions

View File

@ -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,