Skip to content

Commit fe7a97c

Browse files
committed
Remaining types in proto::message to modules
All types are `pub use` in `mod proto`, so can be accessed at the same module path as before this change. Also exposed a `pub use crate::proto::Result` in `proto:message` to match the `type Result` alias that used to be there in order to avoid that paper cut of a breaking change. Also refactor tests into the modules that the test, except for a few left in `proto::message` that use `Request` and `Response` as entry points to test the parsing implementation in many submodules. Signed-off-by: Ross Williams <ross@ross-williams.net>
1 parent 26df77f commit fe7a97c

File tree

10 files changed

+936
-879
lines changed

10 files changed

+936
-879
lines changed

src/proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub mod message;
66
pub mod privatekey;
77
pub mod signature;
88

9-
pub use self::error::*;
9+
pub use self::error::{ProtoError as Error, ProtoResult as Result, *};
1010
pub use self::message::*;
1111
pub use self::privatekey::*;
1212
pub use self::signature::*;

0 commit comments

Comments
 (0)