Skip to content

Commit 1a6731c

Browse files
committed
fix: add missing function signatures
1 parent 694daf6 commit 1a6731c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/option.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 %}

src/result.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 %}

0 commit comments

Comments
 (0)