From c1edb855620c2b77bed4d1fc148a26621e584eb3 Mon Sep 17 00:00:00 2001 From: haskal Date: Sat, 14 Mar 2020 17:59:11 -0400 Subject: [PATCH] Remove backtrace support --- hptp-recv/src/main.rs | 12 ++++++------ hptp-send/src/main.rs | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hptp-recv/src/main.rs b/hptp-recv/src/main.rs index 8a6878d..a3643f7 100644 --- a/hptp-recv/src/main.rs +++ b/hptp-recv/src/main.rs @@ -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); + // } } } diff --git a/hptp-send/src/main.rs b/hptp-send/src/main.rs index 1483ce5..a43002f 100644 --- a/hptp-send/src/main.rs +++ b/hptp-send/src/main.rs @@ -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(()) => (), }