diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-11 09:39:21 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-11 09:39:21 -0700 |
commit | 98f21fe69e0361db00e5fbceb7a3168dcb926d32 (patch) | |
tree | 997e318b24f52ccbacbdfb149a203e4e3bac486f /rust/src/api_helpers.rs | |
parent | b15fa552e288bec5bbc2b07a3e11bab9235a1e7c (diff) | |
download | fatcat-98f21fe69e0361db00e5fbceb7a3168dcb926d32.tar.gz fatcat-98f21fe69e0361db00e5fbceb7a3168dcb926d32.zip |
rust clippy (lint) tweaks
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) } } |