Skip to content

Commit f2ea145

Browse files
committed
Fix some travis errors
- Put Judge in scope when calling .side() - Add some doc links
1 parent 215f0eb commit f2ea145

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl<Y, N> Moral<Y, N> {
224224
}
225225
}
226226

227-
/** Convert to Result. Use result instead
227+
/** Convert to Result. Use [`Judge::result`] instead
228228
229229
Maps Good to Ok and Bad to Err.
230230
*/
@@ -235,7 +235,7 @@ impl<Y, N> Moral<Y, N> {
235235
}
236236
}
237237

238-
/** Convert to Result. Use side instead
238+
/** Convert to Either. Use [`Judge::side`] instead
239239
240240
Maps Good to Right and Bad to Left.
241241
*/
@@ -689,7 +689,7 @@ enum CustomError {
689689
690690
impl std::convert::From<io::Error> for CustomError {
691691
fn from(x :io::Error) -> Self {
692-
Self::IOError(x)
692+
CustomError::IOError(x)
693693
}
694694
}
695695

tests/combinators.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![cfg(feature = "combinators")]
33

44
use tear::prelude::*;
5+
use tear::Judge;
56
use either::Either::*;
67

78
#[test] fn side_works () {

0 commit comments

Comments
 (0)