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