File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ abstract struct Option(T)
66 macro inherited
77 {% type = @type .name(generic_args: false ).stringify % }
88
9- def is_some
9+ def is_some : Bool
1010 {% if type == " Some" % }
1111 true
1212 {% else % }
@@ -30,7 +30,7 @@ abstract struct Option(T)
3030 {% end % }
3131 end
3232
33- def is_none
33+ def is_none : Bool
3434 {% if type == " None" % }
3535 true
3636 {% else % }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ abstract struct Result(T, E)
66 macro inherited
77 {% type = @type .name(generic_args: false ).stringify % }
88
9- def is_ok
9+ def is_ok : Bool
1010 {% if type == " Ok" % }
1111 true
1212 {% else % }
@@ -30,7 +30,7 @@ abstract struct Result(T, E)
3030 {% end % }
3131 end
3232
33- def is_err
33+ def is_err : Bool
3434 {% if type == " Err" % }
3535 true
3636 {% else % }
You can’t perform that action at this time.
0 commit comments