mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 05:52:19 +00:00
minor refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user