From 48abbb7ac36820239305677b848e578d8e2c1abe Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Sun, 29 Sep 2024 15:09:58 +0200 Subject: [PATCH] minor refactoring --- crates/dav/src/resource.rs | 3 +-- crates/store/tests/test_calendar.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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(),