Skip to content

Commit

Permalink
Workaround for a nightly compilation bug for never type (closes #182)
Browse files Browse the repository at this point in the history
  • Loading branch information
svartalf committed Nov 30, 2019
1 parent 47f0f57 commit 72792a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion heim-common/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ impl From<ffi::IntoStringError> for Error {

impl From<string::ParseError> for Error {
fn from(e: string::ParseError) -> Self {
Error::Other(Box::new(e))
// `string::ParseError` is a type alias to `Never`,
// and since it is in stabilization right now,
// `heim` is affected by https://github.com/heim-rs/heim/issues/182
match e {}
}
}

Expand Down

0 comments on commit 72792a8

Please sign in to comment.