chore: fix warning from new Rust version (#3647)

This commit is contained in:
Alice Ryhl
2021-03-26 19:22:43 +09:00
committed by GitHub
parent 0dc4769708
commit 724ba348d1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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")
+1 -1
View File
@@ -544,7 +544,7 @@ impl TimerEntry {
cx: &mut Context<'_>,
) -> Poll<Result<(), super::Error>> {
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 {