caldav: Replace anyhow!'s with panics where the program should really panic

This commit is contained in:
Lennart
2024-09-29 12:57:07 +02:00
parent 93e28a1a32
commit 1b438ea98a
3 changed files with 3 additions and 5 deletions

View File

@@ -278,7 +278,7 @@ impl<C: CalendarStore + ?Sized> ResourceService for CalendarResource<C> {
) -> Result<Self, Self::Error> {
let cal_store = req
.app_data::<Data<RwLock<C>>>()
.ok_or(anyhow!("no calendar store in app_data!"))?
.expect("no calendar store in app_data!")
.clone()
.into_inner();