From 1a4e35a60e591e74eaa66ab756a28429ebc4d1b0 Mon Sep 17 00:00:00 2001 From: Vincent Stuyck Date: Sun, 1 Mar 2026 16:42:42 +0100 Subject: [PATCH] make ApiClient::read consistend with other read ops --- src/api/rules.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/rules.rs b/src/api/rules.rs index d78d981..975cc4b 100644 --- a/src/api/rules.rs +++ b/src/api/rules.rs @@ -512,9 +512,9 @@ domain_update!(Rule, Rule); domain_delete!(Rule); impl ApiClient { - pub async fn read(&self, id: Uuid) -> Result { + pub async fn read(&self, id: &str) -> Result { let mut object = self.inner.read_domain_object::(id, &()).await?; - object.extensions.id = Some(Uuid::parse_str(&object.id)?); + object.extensions.id = Some(Uuid::parse_str(id)?); Ok(object.extensions) } pub async fn bulk_read(&self) -> Result> {