mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 14:02:29 +00:00
minor refactoring
This commit is contained in:
@@ -80,9 +80,8 @@ impl<R: Resource> HandlePropfind for R {
|
|||||||
&self,
|
&self,
|
||||||
prefix: &str,
|
prefix: &str,
|
||||||
path: String,
|
path: String,
|
||||||
props: Vec<&str>,
|
mut props: Vec<&str>,
|
||||||
) -> Result<ResponseElement<PropstatWrapper<R::Prop>>, R::Error> {
|
) -> Result<ResponseElement<PropstatWrapper<R::Prop>>, R::Error> {
|
||||||
let mut props = props;
|
|
||||||
if props.contains(&"propname") {
|
if props.contains(&"propname") {
|
||||||
if props.len() != 1 {
|
if props.len() != 1 {
|
||||||
// propname MUST be the only queried prop per spec
|
// propname MUST be the only queried prop per spec
|
||||||
|
|||||||
@@ -24,8 +24,7 @@ async fn test_init<CS: CalendarStore>(_store: CS) {
|
|||||||
|
|
||||||
#[apply(cal_store)]
|
#[apply(cal_store)]
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn test_create_event<CS: CalendarStore>(store: CS) {
|
async fn test_create_event<CS: CalendarStore>(mut store: CS) {
|
||||||
let mut store = store;
|
|
||||||
store
|
store
|
||||||
.insert_calendar(rustical_store::calendar::Calendar {
|
.insert_calendar(rustical_store::calendar::Calendar {
|
||||||
id: "test".to_owned(),
|
id: "test".to_owned(),
|
||||||
|
|||||||
Reference in New Issue
Block a user