mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-09 11:43:57 +01:00
Remove impl std::process::Termination for True
This commit is contained in:
parent
035d33561b
commit
5e66c8fa22
3 changed files with 0 additions and 9 deletions
|
@ -16,4 +16,3 @@ tokio = "0.2.0-alpha.4"
|
||||||
bytes = "0.4.12"
|
bytes = "0.4.12"
|
||||||
futures-preview = "0.3.0-alpha.18"
|
futures-preview = "0.3.0-alpha.18"
|
||||||
async-trait = "0.1.13"
|
async-trait = "0.1.13"
|
||||||
libc = "0.2.62"
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#![feature(termination_trait_lib)]
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate derive_more;
|
extern crate derive_more;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
@ -4,12 +4,6 @@ use serde::ser::{Serialize, Serializer};
|
||||||
#[derive(Copy, Clone, Debug, Default, Eq, Hash, PartialEq, PartialOrd, Ord)]
|
#[derive(Copy, Clone, Debug, Default, Eq, Hash, PartialEq, PartialOrd, Ord)]
|
||||||
pub struct True;
|
pub struct True;
|
||||||
|
|
||||||
impl std::process::Termination for True {
|
|
||||||
fn report(self) -> i32 {
|
|
||||||
libc::EXIT_SUCCESS
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl std::convert::TryFrom<bool> for True {
|
impl std::convert::TryFrom<bool> for True {
|
||||||
type Error = ();
|
type Error = ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue