Skip to content

Commit 95ea7b2

Browse files
committed
Make StatusAnd::map public just in case any users need it.
1 parent 392b603 commit 95ea7b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl Status {
7373
}
7474

7575
impl<T> StatusAnd<T> {
76-
fn map<F: FnOnce(T) -> U, U>(self, f: F) -> StatusAnd<U> {
76+
pub fn map<F: FnOnce(T) -> U, U>(self, f: F) -> StatusAnd<U> {
7777
StatusAnd {
7878
status: self.status,
7979
value: f(self.value),

0 commit comments

Comments
 (0)