Skip to content

Commit

Permalink
fixes #22836; Unnecessary warning on 'options.none' with 'strictDefs'…
Browse files Browse the repository at this point in the history
… enabled

fixes #22836
  • Loading branch information
ringabout authored Oct 18, 2023
1 parent 3c48af7 commit 91d84e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/options.nim
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ proc none*(T: typedesc): Option[T] {.inline.} =
assert none(int).isNone

# the default is the none type
discard
result = Option[T]()

proc none*[T]: Option[T] {.inline.} =
## Alias for `none(T) <#none,typedesc>`_.
Expand Down

0 comments on commit 91d84e3

Please sign in to comment.