From 2bf383861bdb05e18ee45228cfacdc6e494274e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Sat, 27 Jun 2020 13:33:24 +0300 Subject: [PATCH] Fix doctest --- src/doctest.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/doctest.rs b/src/doctest.rs index 02805b58..5b588b57 100644 --- a/src/doctest.rs +++ b/src/doctest.rs @@ -93,6 +93,7 @@ fn test_key_not_sync_db_not_send() {} /// not be `Sync`. /// /// ```compile_fail,E0277 +/// use std::cell::Cell; /// use std::rc::Rc; /// /// #[salsa::query_group(NoSendSyncStorage)] @@ -120,7 +121,7 @@ fn test_key_not_sync_db_not_send() {} /// &self.runtime /// } /// -/// fn salsa_runtime(&mut self) -> &mut salsa::Runtime { +/// fn salsa_runtime_mut(&mut self) -> &mut salsa::Runtime { /// &mut self.runtime /// } /// }