From 724ba348d1754deb29efa70852d0a745f3b0d90e Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Fri, 26 Mar 2021 11:22:43 +0100 Subject: [PATCH] chore: fix warning from new Rust version (#3647) --- tokio/src/process/mod.rs | 4 ++-- tokio/src/time/driver/entry.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tokio/src/process/mod.rs b/tokio/src/process/mod.rs index 7180d510a..00e39b05a 100644 --- a/tokio/src/process/mod.rs +++ b/tokio/src/process/mod.rs @@ -479,7 +479,7 @@ impl Command { /// Basic usage: /// /// ```no_run - /// use tokio::process::Command;; + /// use tokio::process::Command; /// use std::process::Stdio; /// /// let command = Command::new("ls") @@ -503,7 +503,7 @@ impl Command { /// Basic usage: /// /// ```no_run - /// use tokio::process::Command;; + /// use tokio::process::Command; /// use std::process::{Stdio}; /// /// let command = Command::new("ls") diff --git a/tokio/src/time/driver/entry.rs b/tokio/src/time/driver/entry.rs index e840956c1..e630fa836 100644 --- a/tokio/src/time/driver/entry.rs +++ b/tokio/src/time/driver/entry.rs @@ -544,7 +544,7 @@ impl TimerEntry { cx: &mut Context<'_>, ) -> Poll> { if self.driver.is_shutdown() { - panic!(crate::util::error::RUNTIME_SHUTTING_DOWN_ERROR); + panic!("{}", crate::util::error::RUNTIME_SHUTTING_DOWN_ERROR); } if let Some(deadline) = self.initial_deadline {