From 5e66c8fa2237568635e2dbf675459d5ccb651dfc Mon Sep 17 00:00:00 2001 From: Waffle Date: Wed, 9 Oct 2019 21:25:54 +0300 Subject: [PATCH] Remove impl std::process::Termination for True --- Cargo.toml | 1 - src/lib.rs | 2 -- src/types/unit_true.rs | 6 ------ 3 files changed, 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ae9588a7..f44dab04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,4 +16,3 @@ tokio = "0.2.0-alpha.4" bytes = "0.4.12" futures-preview = "0.3.0-alpha.18" async-trait = "0.1.13" -libc = "0.2.62" diff --git a/src/lib.rs b/src/lib.rs index 057d6378..9932f5af 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,3 @@ -#![feature(termination_trait_lib)] - #[macro_use] extern crate derive_more; #[macro_use] diff --git a/src/types/unit_true.rs b/src/types/unit_true.rs index 91a86409..e2c9444b 100644 --- a/src/types/unit_true.rs +++ b/src/types/unit_true.rs @@ -4,12 +4,6 @@ use serde::ser::{Serialize, Serializer}; #[derive(Copy, Clone, Debug, Default, Eq, Hash, PartialEq, PartialOrd, Ord)] pub struct True; -impl std::process::Termination for True { - fn report(self) -> i32 { - libc::EXIT_SUCCESS - } -} - impl std::convert::TryFrom for True { type Error = ();