Skip to content

Commit

Permalink
options: remove deprecated UnpackError
Browse files Browse the repository at this point in the history
- removed UnpackError, now uses UnpackDefect
- Defects in general are a bad idea, but less code
  • Loading branch information
saem committed Aug 6, 2022
1 parent aa11679 commit bd037e9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/pure/options.nim
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ type
has: bool

UnpackDefect* = object of Defect
UnpackError* {.deprecated: "See corresponding Defect".} = UnpackDefect

proc option*[T](val: sink T): Option[T] {.inline.} =
## Can be used to convert a pointer type (`ptr`, `pointer`, `ref` or `proc`) to an option type.
Expand Down

0 comments on commit bd037e9

Please sign in to comment.