diff options
Diffstat (limited to 'rust/src/api_helpers.rs')
-rw-r--r-- | rust/src/api_helpers.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/src/api_helpers.rs b/rust/src/api_helpers.rs index 6c214223..8ddaf82c 100644 --- a/rust/src/api_helpers.rs +++ b/rust/src/api_helpers.rs @@ -117,8 +117,9 @@ impl FatCatId { pub fn to_uuid(&self) -> Uuid { self.0 } + // TODO: just make it u: Uuid and clone (not by ref) pub fn from_uuid(u: &Uuid) -> FatCatId { - FatCatId(u.clone()) + FatCatId(*u) } } |