aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_helpers.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-11 09:39:21 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-11 09:39:21 -0700
commit98f21fe69e0361db00e5fbceb7a3168dcb926d32 (patch)
tree997e318b24f52ccbacbdfb149a203e4e3bac486f /rust/src/api_helpers.rs
parentb15fa552e288bec5bbc2b07a3e11bab9235a1e7c (diff)
downloadfatcat-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.rs3
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)
}
}