From 98f21fe69e0361db00e5fbceb7a3168dcb926d32 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 11 Sep 2018 09:39:21 -0700 Subject: rust clippy (lint) tweaks --- rust/src/api_server.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'rust/src/api_server.rs') diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs index 076bc085..449196be 100644 --- a/rust/src/api_server.rs +++ b/rust/src/api_server.rs @@ -61,7 +61,7 @@ impl Server { pub fn get_container_handler( &self, id: FatCatId, - _expand: Option, + _expand: &Option, conn: &DbConn, ) -> Result { ContainerEntity::db_get(conn, id) @@ -85,7 +85,7 @@ impl Server { pub fn get_creator_handler( &self, id: FatCatId, - _expand: Option, + _expand: &Option, conn: &DbConn, ) -> Result { CreatorEntity::db_get(conn, id) @@ -129,7 +129,7 @@ impl Server { pub fn get_file_handler( &self, id: FatCatId, - _expand: Option, + _expand: &Option, conn: &DbConn, ) -> Result { FileEntity::db_get(conn, id) @@ -152,7 +152,7 @@ impl Server { pub fn get_release_handler( &self, id: FatCatId, - expand: Option, + expand: &Option, conn: &DbConn, ) -> Result { let mut release = ReleaseEntity::db_get(conn, id)?; @@ -162,7 +162,7 @@ impl Server { release.files = Some(self.get_release_files_handler(id, conn)?); if let Some(ref cid) = release.container_id { release.container = - Some(self.get_container_handler(FatCatId::from_str(&cid)?, None, conn)?); + Some(self.get_container_handler(FatCatId::from_str(&cid)?, &None, conn)?); } } Ok(release) @@ -204,7 +204,7 @@ impl Server { pub fn get_work_handler( &self, id: FatCatId, - _expand: Option, + _expand: &Option, conn: &DbConn, ) -> Result { WorkEntity::db_get(conn, id) -- cgit v1.2.3