Formatting

This commit is contained in:
Lennart
2024-07-28 17:47:49 +02:00
parent 21fe841ef1
commit ea460f8187
4 changed files with 19 additions and 24 deletions

View File

@@ -51,12 +51,12 @@ impl Resource for RootFile {
type Error = Error;
fn get_prop(&self, prefix: &str, prop: Self::PropName) -> Result<Self::Prop, Self::Error> {
match prop {
RootPropName::Resourcetype => Ok(RootProp::Resourcetype(Resourcetype::default())),
RootPropName::CurrentUserPrincipal => Ok(RootProp::CurrentUserPrincipal(
HrefElement::new(format!("{}/user/{}/", prefix, self.principal)),
Ok(match prop {
RootPropName::Resourcetype => RootProp::Resourcetype(Resourcetype::default()),
RootPropName::CurrentUserPrincipal => RootProp::CurrentUserPrincipal(HrefElement::new(
format!("{}/user/{}/", prefix, self.principal),
)),
}
})
}
}