Skip to content

Commit dfe594c

Browse files
authored
Merge pull request #2 from jordan4ibanez/patch-1
Fix it to work with arrays
2 parents 999d988 + c649f6d commit dfe594c

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)