Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
Add missing type parameter
Browse files Browse the repository at this point in the history
Add temporary #![feature(log_syntax)]
  • Loading branch information
pengowen123 committed Oct 18, 2017
1 parent 4cb94bc commit f190643
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#![allow(unknown_lints)] // to be removed when unused_doc_comments lints is merged
#![doc(html_root_url = "https://docs.rs/error-chain/0.11.0")]

#![feature(log_syntax)]

//! A library for consistent and reliable error handling
//!
//! error-chain makes it easy to take full advantage of Rust's
Expand Down Expand Up @@ -691,7 +693,7 @@ where
T: ToError + ?Sized,
{
/// Creates a new State type
pub fn new<CE: ChainedError>(e: Box<error::Error + Send>) -> State {
pub fn new<CE: ChainedError<T>>(e: Box<error::Error + Send>) -> State<T> {
let backtrace = CE::extract_backtrace(&*e).unwrap_or_else(InternalBacktrace::new);
State {
next_error: Some(e),
Expand Down

0 comments on commit f190643

Please sign in to comment.