Skip to content

Commit c649f6d

Browse files
Fix it to work with arrays
I didn't think it would be this simple but it appears to be
1 parent 999d988 commit c649f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/optibrev.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ struct Option(T)
170170
{
171171
if (type == OptionType.SOME)
172172
{
173-
return value;
173+
return cast(T)value;
174174
}
175175

176176
throw new Exception("Can't unwrap None");

0 commit comments

Comments
 (0)