mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
chore: Add clippy lints (#529)
Lints are added (deny) at crate level. In each offending file, the failing lints are explicitly allowed. Each file will be fixed in subsequent PRs. Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
604591a0f7
commit
249dcd0b43
@@ -1,6 +1,21 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
#![allow(
|
||||
clippy::panic,
|
||||
clippy::panic_in_result_fn,
|
||||
clippy::unwrap_used,
|
||||
clippy::manual_assert,
|
||||
clippy::indexing_slicing,
|
||||
clippy::option_if_let_else,
|
||||
clippy::semicolon_if_nothing_returned,
|
||||
clippy::unseparated_literal_suffix,
|
||||
clippy::use_debug,
|
||||
clippy::unused_trait_names,
|
||||
clippy::as_conversions,
|
||||
clippy::pattern_type_mismatch
|
||||
)] // VM tests assert/unwrap and use manual panics to validate scenarios
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::rvm::tests::instruction_parser::{parse_instruction, parse_loop_mode};
|
||||
|
||||
Reference in New Issue
Block a user