Commit 3e890c6
committed
Work around type inference issue in varray![]
When passing &varray[...] to a method accepting &OutArray, rustc will fail
compilation, as the involved types don't seem to be eligible for auto-deref
coercion. The explicit `as` cast gives the compiler the necessary type hints.1 parent 3416265 commit 3e890c6
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1625 | 1625 | | |
1626 | 1626 | | |
1627 | 1627 | | |
1628 | | - | |
| 1628 | + | |
| 1629 | + | |
1629 | 1630 | | |
1630 | 1631 | | |
1631 | 1632 | | |
| |||
0 commit comments