Skip to content

Commit 2bc4101

Browse files
Remove Result type
Not common enough to variant a type alias.
1 parent d9aa346 commit 2bc4101

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/error.rs

-3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,3 @@ impl From<unsigned_varint::io::ReadError> for Error {
4747
}
4848
}
4949
}
50-
51-
/// Multihash result.
52-
pub type Result<T> = core::result::Result<T, Error>;

src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ mod error;
6161
mod hasher;
6262
mod multihash;
6363

64-
pub use crate::error::{Error, Result};
64+
/// Multihash result.
65+
#[deprecated(note = "Use `Result<T, multihash::Error>` instead")]
66+
pub type Result<T> = core::result::Result<T, Error>;
67+
68+
pub use crate::error::Error;
6569
pub use crate::multihash::{Multihash, MultihashDigest};
6670
pub use hasher::Hasher;
6771
#[cfg(feature = "derive")]

0 commit comments

Comments
 (0)