Use of take() instead of unwrap()

This commit is contained in:
Mauro D
2022-07-17 17:20:24 +00:00
parent 5cc21ed1b5
commit 8b20a25461
23 changed files with 165 additions and 39 deletions

View File

@@ -100,7 +100,7 @@ impl Client {
request
.send_single::<VacationResponseGetResponse>()
.await
.map(|mut r| r.unwrap_list().pop())
.map(|mut r| r.take_list().pop())
}
pub async fn vacation_response_destroy(&self) -> crate::Result<()> {