mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 08:12:24 +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
|
||||
|
||||
Reference in New Issue
Block a user