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

Commit f190643

Browse files
committed
Add missing type parameter
Add temporary #![feature(log_syntax)]
1 parent 4cb94bc commit f190643

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#![allow(unknown_lints)] // to be removed when unused_doc_comments lints is merged
33
#![doc(html_root_url = "https://docs.rs/error-chain/0.11.0")]
44

5+
#![feature(log_syntax)]
6+
57
//! A library for consistent and reliable error handling
68
//!
79
//! error-chain makes it easy to take full advantage of Rust's
@@ -691,7 +693,7 @@ where
691693
T: ToError + ?Sized,
692694
{
693695
/// Creates a new State type
694-
pub fn new<CE: ChainedError>(e: Box<error::Error + Send>) -> State {
696+
pub fn new<CE: ChainedError<T>>(e: Box<error::Error + Send>) -> State<T> {
695697
let backtrace = CE::extract_backtrace(&*e).unwrap_or_else(InternalBacktrace::new);
696698
State {
697699
next_error: Some(e),

0 commit comments

Comments
 (0)