Remove impl std::process::Termination for True

This commit is contained in:
Waffle 2019-10-09 21:25:54 +03:00
parent 035d33561b
commit 5e66c8fa22
3 changed files with 0 additions and 9 deletions

View file

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

View file

@ -1,5 +1,3 @@
#![feature(termination_trait_lib)]
#[macro_use]
extern crate derive_more;
#[macro_use]

View file

@ -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<bool> for True {
type Error = ();