From 63a08f12ad0707fc62878cc03423d88b23bed277 Mon Sep 17 00:00:00 2001 From: Maximilian Fijak <33397649+MFijak@users.noreply.github.com> Date: Fri, 16 Sep 2022 10:23:30 +0200 Subject: [PATCH] Update to APIResult MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniel GarcĂ­a --- src/api/core/organizations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index 8a55329d..b82ca4f2 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -1763,7 +1763,7 @@ impl GroupRequest { pub fn to_group(&self, organizations_uuid: &str) -> Result { let access_all_value = match self.AccessAll { Some(value) => value, - _ => return Err(String::from("Could not convert GroupRequest to Group, because AccessAll has no value!")), + _ => err!("Could not convert GroupRequest to Group, because AccessAll has no value!"), }; Ok(Group::new(organizations_uuid.to_owned(), self.Name.clone(), access_all_value, self.ExternalId.clone()))