Skip to content

Commit

Permalink
Merge pull request #6 from dgrnbrg/patch-1
Browse files Browse the repository at this point in the history
Make error module public
  • Loading branch information
AtheMathmo committed Sep 7, 2017
2 parents ff37cc7 + c1542cb commit e4e3c04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -11,4 +11,4 @@ license = "BSD-2-Clause"

[dependencies]
lazy_static = "0.2.1"
error-chain = "0.5.0"
error-chain = "0.10.0"
6 changes: 3 additions & 3 deletions src/error.rs
Expand Up @@ -7,9 +7,9 @@ use std::str;

error_chain! {
foreign_links {
io::Error, Io;
ffi::NulError, Nul;
str::Utf8Error, Utf8;
Io(io::Error);
Nul(ffi::NulError);
Utf8(str::Utf8Error);
}

errors {
Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Expand Up @@ -31,15 +31,14 @@
//! We limit access this way to ensure that only one profiler is running at a time -
//! this is a limitation of the cpuprofiler library.

#![deny(missing_docs)]
#![warn(missing_debug_implementations)]

#[macro_use]
extern crate error_chain;
#[macro_use]
extern crate lazy_static;

mod error;
pub mod error;

use std::ffi::CString;
use std::fmt;
Expand Down

0 comments on commit e4e3c04

Please sign in to comment.