Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Remove unnecessary unsafe code #123

Merged
merged 3 commits into from
May 31, 2024
Merged

Conversation

tcharding
Copy link
Collaborator

We can initialize the RESULTS vector inside a mutex and remove a couple of unsafe blocks.

lazy_static is already in use; this patch does not change the test coverage.

We can initialize the `RESULTS` vector inside a mutex and remove a
couple of unsafe blocks.

`lazy_static` is already in use; this patch does not change the test
coverage.
As we did in rust-bitcoin/rust-bitcoin#2785.

rust-lang/rust#124800 has been fixed and we can update our nightly
version by whitelisting all cfgs that are used.
`clone_into` is only available in Rust 1.63 and since our MSRV is Rust
1.48 just shoosh clippy
Copy link
Owner

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK cf3ccbc

Copy link
Owner

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK cf3ccbc also ran the integration tests this time

@apoelstra apoelstra merged commit 09bbc3d into apoelstra:master May 31, 2024
9 checks passed
@tcharding tcharding deleted the 05-31-use-mutex branch June 14, 2024 02:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants