[pull] main from VirusTotal:main#156
Merged
Merged
Conversation
This is in preparation for switching to the 2024 edition.
Instead of using a mutable global array that is computed the first time it is used, compute the array at compile time.
…ion for Rust 2024. Rust 2024 requires that you specify the generic parameters that are captured by the hidden type represented by `impl Trait`. https://doc.rust-lang.org/std/keyword.use.html#precise-capturing
In Rust 2024 marking a function as `unsafe` only indicates that this function must be used within an unsafe block, but doesn't allow the function itself to call unsafe function without explicitly using an unsafe block.
…e` blocks. In the C API everything is unsafe, we don't want to explicitly mark unsafe calls as unsafe.
This module was used only for demonstration purposes and disabled by default.
Also start using resolver 3, which is the default in the 2024 edition.
Formatting changes slightly in Rust 2024.
With the change to edition 2024 clippy finds a bunch of new warnings. Most of them are related to chained `if let` statements.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )