minor refactoring

This commit is contained in:
Lennart
2024-09-29 15:09:58 +02:00
parent 3469252cd3
commit 48abbb7ac3
2 changed files with 2 additions and 4 deletions

View File

@@ -80,9 +80,8 @@ impl<R: Resource> HandlePropfind for R {
&self,
prefix: &str,
path: String,
props: Vec<&str>,
mut props: Vec<&str>,
) -> Result<ResponseElement<PropstatWrapper<R::Prop>>, R::Error> {
let mut props = props;
if props.contains(&"propname") {
if props.len() != 1 {
// propname MUST be the only queried prop per spec

View File

@@ -24,8 +24,7 @@ async fn test_init<CS: CalendarStore>(_store: CS) {
#[apply(cal_store)]
#[tokio::test]
async fn test_create_event<CS: CalendarStore>(store: CS) {
let mut store = store;
async fn test_create_event<CS: CalendarStore>(mut store: CS) {
store
.insert_calendar(rustical_store::calendar::Calendar {
id: "test".to_owned(),