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

This commit is contained in:
Alice Ryhl 2021-03-26 11:22:43 +01:00 committed by GitHub
parent 0dc4769708
commit 724ba348d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

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")

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 {