Fix clippy lint

This commit is contained in:
Yash Karandikar 2022-07-06 15:57:30 +05:30
parent 51100f37f7
commit 1662409c54

View file

@ -615,11 +615,7 @@ impl XcrabWindowManager {
}
pub async fn get_focused(&self) -> Result<Window> {
if self.focused != None {
Ok(self.focused.unwrap())
} else {
Err(XcrabError::ClientDoesntExist)
}
self.focused.ok_or(XcrabError::ClientDoesntExist)
}
pub async fn get_framed_window(&self, window: Window) -> Result<FramedWindow> {