Remove backtrace support

This commit is contained in:
xenia 2020-03-14 17:59:11 -04:00
parent 9b734233c0
commit c1edb85562
2 changed files with 12 additions and 12 deletions

View File

@ -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);
// }
}
}

View File

@ -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(()) => (),
}