diff --git a/crates/dav/src/resource.rs b/crates/dav/src/resource.rs index effc7ae..10b0188 100644 --- a/crates/dav/src/resource.rs +++ b/crates/dav/src/resource.rs @@ -80,9 +80,8 @@ impl HandlePropfind for R { &self, prefix: &str, path: String, - props: Vec<&str>, + mut props: Vec<&str>, ) -> Result>, R::Error> { - let mut props = props; if props.contains(&"propname") { if props.len() != 1 { // propname MUST be the only queried prop per spec diff --git a/crates/store/tests/test_calendar.rs b/crates/store/tests/test_calendar.rs index 36403ae..b6468b4 100644 --- a/crates/store/tests/test_calendar.rs +++ b/crates/store/tests/test_calendar.rs @@ -24,8 +24,7 @@ async fn test_init(_store: CS) { #[apply(cal_store)] #[tokio::test] -async fn test_create_event(store: CS) { - let mut store = store; +async fn test_create_event(mut store: CS) { store .insert_calendar(rustical_store::calendar::Calendar { id: "test".to_owned(),