Commit 2cef561
committed
key.rs: clean up some pointer mangling in sort_pubkeys()
In sort_pubkeys() we convert a slice of PublicKeys to a slice of
ffi::PublicKeys. This is OK, because we have repr(transparent) allowing
us to do this. But we do so in an unnecessarily-complicated way, which
winds up going through the CPtr implementation on &[u8], and which I
think may technically be unsound.
Simplify it and avoid using this impl. The next commit will remove it
entirely.1 parent 44bcb89 commit 2cef561
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1644 | 1644 | | |
1645 | 1645 | | |
1646 | 1646 | | |
1647 | | - | |
1648 | | - | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
1652 | 1650 | | |
1653 | 1651 | | |
1654 | 1652 | | |
| |||
0 commit comments