From c006db63d2066a8147909c123fed5243da0bcc65 Mon Sep 17 00:00:00 2001 From: Andrew Gauger Date: Thu, 20 Feb 2020 09:18:27 -0800 Subject: [PATCH] Prepare for 12.2 release (#287) --- CHANGELOG.md | 5 ++++- Cargo.toml | 5 +++-- src/error_chain.rs | 8 ++++++-- src/lib.rs | 2 +- 4 files changed, 14 insertions(+), 6 deletions(-) mode change 100644 => 100755 CHANGELOG.md mode change 100644 => 100755 Cargo.toml mode change 100644 => 100755 src/error_chain.rs mode change 100644 => 100755 src/lib.rs diff --git a/CHANGELOG.md b/CHANGELOG.md old mode 100644 new mode 100755 index b66700208..639d24c70 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ -# Unreleased +# 0.12.2 +- [allow `Error::description` to be used for rust below 1.42](https://github.com/rust-lang-nursery/error-chain/pull/285) +- [Improvements to has_backtrace_depending_on_env](https://github.com/rust-lang-nursery/error-chain/pull/277) +- Backtrace support now requires rust 1.32.0 # 0.12.1 diff --git a/Cargo.toml b/Cargo.toml old mode 100644 new mode 100755 index d3ba89fbf..c1f3ad9ca --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "error-chain" -version = "0.12.1" # remember to update html_root_url +version = "0.12.2" # remember to update html_root_url authors = [ "Brian Anderson ", "Paul Colomiets ", "Colin Kiegel ", - "Yamakaky "] + "Yamakaky ", + "Andrew Gauger "] description = "Yet another error boilerplate library." keywords = ["error"] categories = ["rust-patterns"] diff --git a/src/error_chain.rs b/src/error_chain.rs old mode 100644 new mode 100755 index 4f99243e7..838270962 --- a/src/error_chain.rs +++ b/src/error_chain.rs @@ -73,14 +73,18 @@ macro_rules! impl_error_chain_cause_or_source { #[cfg(has_error_description_deprecated)] #[macro_export(local_inner_macros)] macro_rules! call_to_deprecated_description { - ($e:ident) => { "" }; + ($e:ident) => { + "" + }; } #[doc(hidden)] #[cfg(not(has_error_description_deprecated))] #[macro_export(local_inner_macros)] macro_rules! call_to_deprecated_description { - ($e:ident) => { ::std::error::Error::description($e) }; + ($e:ident) => { + ::std::error::Error::description($e) + }; } /// Prefer to use `error_chain` instead of this macro. diff --git a/src/lib.rs b/src/lib.rs old mode 100644 new mode 100755 index a91b218db..b6bd2f278 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ #![deny(missing_docs)] -#![doc(html_root_url = "https://docs.rs/error-chain/0.12.1")] +#![doc(html_root_url = "https://docs.rs/error-chain/0.12.2")] //! A library for consistent and reliable error handling //!