Remove backtrace support
This commit is contained in:
parent
9b734233c0
commit
c1edb85562
|
@ -1,4 +1,4 @@
|
||||||
#![feature(backtrace)]
|
// #![feature(backtrace)]
|
||||||
extern crate hptp;
|
extern crate hptp;
|
||||||
extern crate tokio;
|
extern crate tokio;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
@ -19,7 +19,7 @@ enum Error {
|
||||||
Io {
|
Io {
|
||||||
#[from]
|
#[from]
|
||||||
source: tokio::io::Error,
|
source: tokio::io::Error,
|
||||||
backtrace: std::backtrace::Backtrace,
|
// backtrace: std::backtrace::Backtrace,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,11 +31,11 @@ fn entry() -> Result<(), Error> {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
if let Err(e) = entry() {
|
if let Err(e) = entry() {
|
||||||
use std::error::Error;
|
// use std::error::Error;
|
||||||
println!("Error: {}", e);
|
println!("Error: {}", e);
|
||||||
for bt in e.backtrace() {
|
// for bt in e.backtrace() {
|
||||||
println!("{}", bt);
|
// println!("{}", bt);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#![feature(backtrace)]
|
// #![feature(backtrace)]
|
||||||
extern crate hptp;
|
extern crate hptp;
|
||||||
extern crate tokio;
|
extern crate tokio;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
@ -23,7 +23,7 @@ enum Error {
|
||||||
Io {
|
Io {
|
||||||
#[from]
|
#[from]
|
||||||
source: tokio::io::Error,
|
source: tokio::io::Error,
|
||||||
backtrace: std::backtrace::Backtrace,
|
// backtrace: std::backtrace::Backtrace,
|
||||||
},
|
},
|
||||||
#[error("invalid command-line arguments")]
|
#[error("invalid command-line arguments")]
|
||||||
InvalidArgs,
|
InvalidArgs,
|
||||||
|
@ -33,11 +33,11 @@ fn main() {
|
||||||
match entry() {
|
match entry() {
|
||||||
Err(Error::InvalidArgs) => print_usage(),
|
Err(Error::InvalidArgs) => print_usage(),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
use std::error::Error;
|
// use std::error::Error;
|
||||||
println!("Error: {:?}", e);
|
println!("Error: {:?}", e);
|
||||||
for bt in e.backtrace() {
|
// for bt in e.backtrace() {
|
||||||
println!("{}", bt);
|
// println!("{}", bt);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
Ok(()) => (),
|
Ok(()) => (),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue