Skip to content

Commit

Permalink
Use doc attributes to foreign links
Browse files Browse the repository at this point in the history
  • Loading branch information
bjgill authored Oct 31, 2017
1 parent b6bec65 commit 143da3d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
//! Create the `Error`, `ErrorKind`, `ResultExt`, and `Result` types
#![allow(missing_docs)] // see https://github.com/rust-lang-nursery/error-chain/issues/63

error_chain!{
foreign_links {
// Error during execution of `cargo metadata`
Io(::std::io::Error);
// Output of `cargo metadata` was not valid utf8
Utf8(::std::str::Utf8Error);
// Deserialization error (structure of json did not match expected structure)
Json(::serde_json::Error);
Io(::std::io::Error) #[doc = "Error during execution of `cargo metadata`"];
Utf8(::std::str::Utf8Error) #[doc = "Output of `cargo metadata` was not valid utf8"];
Json(::serde_json::Error) #[doc = "Deserialization error (structure of json did not match expected structure)"];
}
}

0 comments on commit 143da3d

Please sign in to comment.