summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-11-02 15:03:37 +0100
committerGitHub <noreply@github.com>2021-11-02 10:03:37 -0400
commit8e31bbbe551e95a40a78fd96671916f917218b93 (patch)
treef11c7b387b1d9c10898d6a67f37afcafea750d40 /runtime
parent70336912b4307ac218426a3f5ce938bd8fb7dbb5 (diff)
chore: update to Rust edition 2021 (#12578)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/Cargo.toml2
-rw-r--r--runtime/ops/process.rs1
2 files changed, 1 insertions, 2 deletions
diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml
index f1d065b16..60f11d703 100644
--- a/runtime/Cargo.toml
+++ b/runtime/Cargo.toml
@@ -4,7 +4,7 @@
name = "deno_runtime"
version = "0.31.0"
authors = ["the Deno authors"]
-edition = "2018"
+edition = "2021"
license = "MIT"
repository = "https://github.com/denoland/deno"
description = "Provides the deno runtime library"
diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs
index 833b1822c..0324cb599 100644
--- a/runtime/ops/process.rs
+++ b/runtime/ops/process.rs
@@ -261,7 +261,6 @@ pub fn kill(pid: i32, signal: &str) -> Result<(), AnyError> {
let signo = super::signal::signal_str_to_int(signal)?;
use nix::sys::signal::{kill as unix_kill, Signal};
use nix::unistd::Pid;
- use std::convert::TryFrom;
let sig = Signal::try_from(signo)?;
unix_kill(Pid::from_raw(pid), Option::Some(sig)).map_err(AnyError::from)
}