abrown opened PR #1340 from clippy
to master
:
- [x] This has been discussed in issue #1170
- [x] A short description of what this does, why it is needed: this fixes the remaining clippy warnings that I could see from running
cargo clean && cargo clippy
(is there a better way to do this?)- [x] This PR contains no test cases; no functionality should change
- [x] A reviewer from the core maintainer team has been assigned for this PR
abrown requested bnjbvr for a review on PR #1340.
abrown updated PR #1340 from clippy
to master
:
- [x] This has been discussed in issue #1170
- [x] A short description of what this does, why it is needed: this fixes the remaining clippy warnings that I could see from running
cargo clean && cargo clippy
(is there a better way to do this?)- [x] This PR contains no test cases; no functionality should change
- [x] A reviewer from the core maintainer team has been assigned for this PR
bnjbvr submitted PR Review.
abrown updated PR #1340 from clippy
to master
:
- [x] This has been discussed in issue #1170
- [x] A short description of what this does, why it is needed: this fixes the remaining clippy warnings that I could see from running
cargo clean && cargo clippy
(is there a better way to do this?)- [x] This PR contains no test cases; no functionality should change
- [x] A reviewer from the core maintainer team has been assigned for this PR
abrown updated PR #1340 from clippy
to master
:
- [x] This has been discussed in issue #1170
- [x] A short description of what this does, why it is needed: this fixes the remaining clippy warnings that I could see from running
cargo clean && cargo clippy
(is there a better way to do this?)- [x] This PR contains no test cases; no functionality should change
- [x] A reviewer from the core maintainer team has been assigned for this PR
abrown updated PR #1340 from clippy
to master
:
- [x] This has been discussed in issue #1170
- [x] A short description of what this does, why it is needed: this fixes the remaining clippy warnings that I could see from running
cargo clean && cargo clippy
(is there a better way to do this?)- [x] This PR contains no test cases; no functionality should change
- [x] A reviewer from the core maintainer team has been assigned for this PR
abrown submitted PR Review.
abrown created PR Review Comment:
@iximeow, @yurydelendik: here it is! (With an extra variable assignment)
iximeow submitted PR Review.
iximeow created PR Review Comment:
@yurydelendik Do you recall what this u32 specifically is? It's a count of FDEs or something, right? It'd be nice if we could use that name instead of
fde_first_u32
.
yurydelendik submitted PR Review.
yurydelendik created PR Review Comment:
As discussed in previous PR, gimli does not provide right API to get all data needed. It is a field (u32) that show length of the CIE, so the len and 4 u32 bytes is offset of the FDE structure that follows CIE.
abrown submitted PR Review.
abrown created PR Review Comment:
Should I rename
fde_first_u32
ascie_len
?
philipc submitted PR Review.
philipc created PR Review Comment:
Nit: the expect message is wrong. That
try_into
isn't checking there were 4 bytes at the beginning ofbytes
. It's checking that the slice passed totry_into
is 4 bytes, which will always be true because we indexed with a range of[..4]
. If there were less than 4 bytes, then there would be a panic on the slice indexing, not on thetry_into().expect()
. IMO usingunwrap
is fine in this case.
abrown updated PR #1340 from clippy
to master
:
- [x] This has been discussed in issue #1170
- [x] A short description of what this does, why it is needed: this fixes the remaining clippy warnings that I could see from running
cargo clean && cargo clippy
(is there a better way to do this?)- [x] This PR contains no test cases; no functionality should change
- [x] A reviewer from the core maintainer team has been assigned for this PR
yurydelendik submitted PR Review.
yurydelendik submitted PR Review.
yurydelendik merged PR #1340.
Last updated: Dec 23 2024 at 13:07 UTC