From dbc9d27d16e2238427ae9daa5d44793d32015b7b Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 3 Apr 2019 11:01:38 -0300 Subject: [PATCH] squash some warnings --- tests/no_send_sync.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/no_send_sync.rs b/tests/no_send_sync.rs index 1bc14a05..ac919672 100644 --- a/tests/no_send_sync.rs +++ b/tests/no_send_sync.rs @@ -1,4 +1,3 @@ -#[macro_use] extern crate salsa; use std::rc::Rc; @@ -9,11 +8,11 @@ trait NoSendSyncDatabase: salsa::Database { fn no_send_sync_key(&self, key: Rc) -> bool; } -fn no_send_sync_value(db: &impl NoSendSyncDatabase, key: bool) -> Rc { +fn no_send_sync_value(_db: &impl NoSendSyncDatabase, key: bool) -> Rc { Rc::new(key) } -fn no_send_sync_key(db: &impl NoSendSyncDatabase, key: Rc) -> bool { +fn no_send_sync_key(_db: &impl NoSendSyncDatabase, key: Rc) -> bool { *key } @@ -31,7 +30,7 @@ impl salsa::Database for DatabaseImpl { #[test] fn no_send_sync() { - let mut db = DatabaseImpl::default(); + let db = DatabaseImpl::default(); assert_eq!(db.no_send_sync_value(true), Rc::new(true)); assert_eq!(db.no_send_sync_key(Rc::new(false)), false);