From e4df79d44f8c0be8de3142bf2bae857f0e223c35 Mon Sep 17 00:00:00 2001 From: Alex Hansen Date: Thu, 17 Oct 2024 12:08:06 -1000 Subject: [PATCH] allow needless raw string hashes and unnecessary wraps (#1969) This change updates our root clippy config and removes the individual overrides for `needless_raw_string_hashes`. It also preemptively allows `unnecessary_wraps` in anticipation of #1954 --- Cargo.toml | 2 ++ compiler/qsc/src/interpret/debug/tests.rs | 2 -- compiler/qsc/src/interpret/debugger_tests.rs | 2 -- compiler/qsc/src/interpret/package_tests.rs | 2 -- compiler/qsc/src/interpret/tests.rs | 2 -- compiler/qsc_codegen/src/qsharp/spec_decls.rs | 1 - compiler/qsc_codegen/src/qsharp/test_utils.rs | 1 - compiler/qsc_codegen/src/qsharp/tests.rs | 1 - compiler/qsc_data_structures/src/namespaces/tests.rs | 2 -- compiler/qsc_doc_gen/src/generate_docs/tests.rs | 2 -- compiler/qsc_eval/src/intrinsic/tests.rs | 2 -- compiler/qsc_eval/src/state/tests.rs | 2 -- compiler/qsc_eval/src/tests.rs | 2 -- compiler/qsc_frontend/src/compile/tests.rs | 2 -- compiler/qsc_frontend/src/error/tests.rs | 2 -- compiler/qsc_frontend/src/lower/tests.rs | 2 -- compiler/qsc_frontend/src/resolve/tests.rs | 2 -- compiler/qsc_frontend/src/typeck/tests.rs | 2 -- compiler/qsc_parse/src/expr/tests.rs | 2 -- compiler/qsc_parse/src/item/tests.rs | 2 -- compiler/qsc_parse/src/lex/cooked/tests.rs | 2 -- compiler/qsc_parse/src/lex/raw/tests.rs | 2 -- compiler/qsc_parse/src/stmt/tests.rs | 2 -- compiler/qsc_partial_eval/src/tests/classical_args.rs | 2 -- compiler/qsc_partial_eval/src/tests/intrinsics.rs | 2 -- compiler/qsc_partial_eval/src/tests/loops.rs | 2 -- compiler/qsc_partial_eval/src/tests/operators.rs | 2 -- compiler/qsc_partial_eval/src/tests/output_recording.rs | 2 -- compiler/qsc_partial_eval/src/tests/qubits.rs | 2 -- compiler/qsc_partial_eval/src/tests/results.rs | 2 -- compiler/qsc_passes/src/baseprofck/tests.rs | 1 - compiler/qsc_passes/src/borrowck/tests.rs | 2 -- compiler/qsc_passes/src/callable_limits/tests.rs | 2 -- compiler/qsc_passes/src/capabilitiesck/tests_adaptive.rs | 2 -- .../src/capabilitiesck/tests_adaptive_plus_integers.rs | 2 -- compiler/qsc_passes/src/capabilitiesck/tests_base.rs | 2 -- compiler/qsc_passes/src/capabilitiesck/tests_common.rs | 2 -- compiler/qsc_passes/src/conjugate_invert/tests.rs | 1 - compiler/qsc_passes/src/entry_point/tests.rs | 2 -- compiler/qsc_passes/src/logic_sep/tests.rs | 1 - compiler/qsc_passes/src/spec_gen/tests.rs | 1 - compiler/qsc_qasm3/src/tests/declaration.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/bit.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/bool.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/complex.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/float.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/gate.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/integer.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/io/explicit_input.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/io/explicit_output.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/io/implicit_output.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/qubit.rs | 2 -- compiler/qsc_qasm3/src/tests/declaration/unsigned_integer.rs | 2 -- compiler/qsc_qasm3/src/tests/expression/binary.rs | 2 -- .../src/tests/expression/binary/arithmetic_conversions.rs | 2 -- compiler/qsc_qasm3/src/tests/expression/binary/comparison.rs | 1 - compiler/qsc_qasm3/src/tests/expression/binary/complex.rs | 2 -- compiler/qsc_qasm3/src/tests/expression/binary/ident.rs | 2 -- .../src/tests/expression/binary/literal/multiplication.rs | 2 -- compiler/qsc_qasm3/src/tests/expression/bits.rs | 2 -- compiler/qsc_qasm3/src/tests/expression/ident.rs | 2 -- .../qsc_qasm3/src/tests/expression/implicit_cast_from_bit.rs | 2 -- .../src/tests/expression/implicit_cast_from_bitarray.rs | 2 -- .../qsc_qasm3/src/tests/expression/implicit_cast_from_bool.rs | 2 -- .../qsc_qasm3/src/tests/expression/implicit_cast_from_float.rs | 2 -- .../qsc_qasm3/src/tests/expression/implicit_cast_from_int.rs | 2 -- compiler/qsc_qasm3/src/tests/expression/indexed.rs | 2 -- compiler/qsc_qasm3/src/tests/expression/unary.rs | 2 -- compiler/qsc_qasm3/src/tests/output.rs | 2 -- compiler/qsc_qasm3/src/tests/scopes.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/annotation.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/end.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/for_loop.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/gate_call.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/if_stmt.rs | 2 -- .../src/tests/statement/implicit_modified_gate_call.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/include.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/measure.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/modified_gate_call.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/reset.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/switch.rs | 2 -- compiler/qsc_qasm3/src/tests/statement/while_loop.rs | 2 -- compiler/qsc_rca/src/tests/arrays.rs | 2 -- compiler/qsc_rca/src/tests/assigns.rs | 2 -- compiler/qsc_rca/src/tests/bindings.rs | 2 -- compiler/qsc_rca/src/tests/binops.rs | 2 -- compiler/qsc_rca/src/tests/callables.rs | 2 -- compiler/qsc_rca/src/tests/calls.rs | 2 -- compiler/qsc_rca/src/tests/cycles.rs | 2 -- compiler/qsc_rca/src/tests/ifs.rs | 2 -- compiler/qsc_rca/src/tests/intrinsics.rs | 2 -- compiler/qsc_rca/src/tests/loops.rs | 2 -- compiler/qsc_rca/src/tests/measurements.rs | 2 -- compiler/qsc_rca/src/tests/overrides.rs | 2 -- compiler/qsc_rca/src/tests/qubits.rs | 2 -- compiler/qsc_rca/src/tests/strings.rs | 2 -- compiler/qsc_rca/src/tests/structs.rs | 2 -- compiler/qsc_rca/src/tests/types.rs | 2 -- compiler/qsc_rca/src/tests/udts.rs | 2 -- compiler/qsc_rca/src/tests/vars.rs | 2 -- language_service/src/code_lens/tests.rs | 2 -- language_service/src/completion/tests.rs | 2 -- language_service/src/definition/tests.rs | 2 -- language_service/src/hover/tests.rs | 2 -- language_service/src/references/tests.rs | 2 -- language_service/src/rename/tests.rs | 2 -- language_service/src/signature_help/tests.rs | 2 -- language_service/src/tests.rs | 2 -- library/src/tests.rs | 2 -- library/src/tests/canon.rs | 2 -- library/src/tests/measurement.rs | 2 -- resource_estimator/src/counts/tests.rs | 2 -- resource_estimator/src/system/data/report.rs | 2 -- samples_test/src/tests.rs | 2 -- samples_test/src/tests/algorithms.rs | 2 -- samples_test/src/tests/language.rs | 2 -- 116 files changed, 2 insertions(+), 222 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e10b969831..9f2de209f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -88,6 +88,8 @@ unwrap_used = "warn" missing_errors_doc = "allow" missing_panics_doc = "allow" module_name_repetitions = "allow" +needless_raw_string_hashes = "allow" +unnecessary_wraps = "allow" [profile.release] debug = "limited" diff --git a/compiler/qsc/src/interpret/debug/tests.rs b/compiler/qsc/src/interpret/debug/tests.rs index 84e08b377b..35b1e49c50 100644 --- a/compiler/qsc/src/interpret/debug/tests.rs +++ b/compiler/qsc/src/interpret/debug/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use indoc::indoc; use miette::Result; use qsc_data_structures::{language_features::LanguageFeatures, target::TargetCapabilityFlags}; diff --git a/compiler/qsc/src/interpret/debugger_tests.rs b/compiler/qsc/src/interpret/debugger_tests.rs index d2b5496459..4a177f80ad 100644 --- a/compiler/qsc/src/interpret/debugger_tests.rs +++ b/compiler/qsc/src/interpret/debugger_tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::interpret::Debugger; use crate::line_column::Encoding; use qsc_data_structures::language_features::LanguageFeatures; diff --git a/compiler/qsc/src/interpret/package_tests.rs b/compiler/qsc/src/interpret/package_tests.rs index e4539015e8..be06c1cd85 100644 --- a/compiler/qsc/src/interpret/package_tests.rs +++ b/compiler/qsc/src/interpret/package_tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::{interpret::Interpreter, packages::BuildableProgram}; use indoc::indoc; use qsc_data_structures::{language_features::LanguageFeatures, target::TargetCapabilityFlags}; diff --git a/compiler/qsc/src/interpret/tests.rs b/compiler/qsc/src/interpret/tests.rs index 688a54dc05..ebcbb20474 100644 --- a/compiler/qsc/src/interpret/tests.rs +++ b/compiler/qsc/src/interpret/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - mod given_interpreter { use crate::interpret::{InterpretResult, Interpreter}; use expect_test::Expect; diff --git a/compiler/qsc_codegen/src/qsharp/spec_decls.rs b/compiler/qsc_codegen/src/qsharp/spec_decls.rs index 0bd5708cc2..642619dd24 100644 --- a/compiler/qsc_codegen/src/qsharp/spec_decls.rs +++ b/compiler/qsc_codegen/src/qsharp/spec_decls.rs @@ -2,7 +2,6 @@ // Licensed under the MIT License. #![allow(clippy::too_many_lines)] -#![allow(clippy::needless_raw_string_hashes)] use expect_test::expect; use indoc::indoc; diff --git a/compiler/qsc_codegen/src/qsharp/test_utils.rs b/compiler/qsc_codegen/src/qsharp/test_utils.rs index cf79d9c779..e8827f8bf2 100644 --- a/compiler/qsc_codegen/src/qsharp/test_utils.rs +++ b/compiler/qsc_codegen/src/qsharp/test_utils.rs @@ -2,7 +2,6 @@ // Licensed under the MIT License. #![allow(clippy::too_many_lines)] -#![allow(clippy::needless_raw_string_hashes)] use std::sync::Arc; diff --git a/compiler/qsc_codegen/src/qsharp/tests.rs b/compiler/qsc_codegen/src/qsharp/tests.rs index 15f457907e..f60a00e29c 100644 --- a/compiler/qsc_codegen/src/qsharp/tests.rs +++ b/compiler/qsc_codegen/src/qsharp/tests.rs @@ -2,7 +2,6 @@ // Licensed under the MIT License. #![allow(clippy::too_many_lines)] -#![allow(clippy::needless_raw_string_hashes)] use expect_test::expect; use indoc::indoc; diff --git a/compiler/qsc_data_structures/src/namespaces/tests.rs b/compiler/qsc_data_structures/src/namespaces/tests.rs index a8544cb271..37fac166ed 100644 --- a/compiler/qsc_data_structures/src/namespaces/tests.rs +++ b/compiler/qsc_data_structures/src/namespaces/tests.rs @@ -4,8 +4,6 @@ // allowing needless raw hashes here because we auto-update these expected outputs // and don't want to risk weird breakages -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use super::*; diff --git a/compiler/qsc_doc_gen/src/generate_docs/tests.rs b/compiler/qsc_doc_gen/src/generate_docs/tests.rs index 1ed814e2c0..9ae1059059 100644 --- a/compiler/qsc_doc_gen/src/generate_docs/tests.rs +++ b/compiler/qsc_doc_gen/src/generate_docs/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::generate_docs; use expect_test::expect; diff --git a/compiler/qsc_eval/src/intrinsic/tests.rs b/compiler/qsc_eval/src/intrinsic/tests.rs index 34b4291480..f607cf2fa3 100644 --- a/compiler/qsc_eval/src/intrinsic/tests.rs +++ b/compiler/qsc_eval/src/intrinsic/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use std::f64::consts; use crate::backend::{Backend, SparseSim}; diff --git a/compiler/qsc_eval/src/state/tests.rs b/compiler/qsc_eval/src/state/tests.rs index bcc5005d85..bf4b0ef5d1 100644 --- a/compiler/qsc_eval/src/state/tests.rs +++ b/compiler/qsc_eval/src/state/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{ get_matrix_latex, get_state_latex, write_latex_for_algebraic_number, write_latex_for_cartesian_form, write_latex_for_complex_number, write_latex_for_decimal_number, diff --git a/compiler/qsc_eval/src/tests.rs b/compiler/qsc_eval/src/tests.rs index d2e183f684..44ac8f0070 100644 --- a/compiler/qsc_eval/src/tests.rs +++ b/compiler/qsc_eval/src/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::{ backend::{Backend, SparseSim}, debug::Frame, diff --git a/compiler/qsc_frontend/src/compile/tests.rs b/compiler/qsc_frontend/src/compile/tests.rs index 77d7ea699f..4bbf5a3869 100644 --- a/compiler/qsc_frontend/src/compile/tests.rs +++ b/compiler/qsc_frontend/src/compile/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - mod multiple_packages; use std::sync::Arc; diff --git a/compiler/qsc_frontend/src/error/tests.rs b/compiler/qsc_frontend/src/error/tests.rs index d17f8672a7..c643e68459 100644 --- a/compiler/qsc_frontend/src/error/tests.rs +++ b/compiler/qsc_frontend/src/error/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::WithSource; use crate::compile::SourceMap; use expect_test::expect; diff --git a/compiler/qsc_frontend/src/lower/tests.rs b/compiler/qsc_frontend/src/lower/tests.rs index 5199f7418e..e2d2a14ea5 100644 --- a/compiler/qsc_frontend/src/lower/tests.rs +++ b/compiler/qsc_frontend/src/lower/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::compile::{self, compile, PackageStore, SourceMap}; use expect_test::{expect, Expect}; use indoc::indoc; diff --git a/compiler/qsc_frontend/src/resolve/tests.rs b/compiler/qsc_frontend/src/resolve/tests.rs index 2851b059ef..1a2b53dce1 100644 --- a/compiler/qsc_frontend/src/resolve/tests.rs +++ b/compiler/qsc_frontend/src/resolve/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{Error, Locals, Names, Res}; use crate::{ compile, diff --git a/compiler/qsc_frontend/src/typeck/tests.rs b/compiler/qsc_frontend/src/typeck/tests.rs index f5b58c847b..916acdd480 100644 --- a/compiler/qsc_frontend/src/typeck/tests.rs +++ b/compiler/qsc_frontend/src/typeck/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::{ compile::{self, Offsetter}, resolve::{self, Resolver}, diff --git a/compiler/qsc_parse/src/expr/tests.rs b/compiler/qsc_parse/src/expr/tests.rs index 4a64bf8ae6..0fbf53215d 100644 --- a/compiler/qsc_parse/src/expr/tests.rs +++ b/compiler/qsc_parse/src/expr/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::expr; use crate::tests::check; use expect_test::expect; diff --git a/compiler/qsc_parse/src/item/tests.rs b/compiler/qsc_parse/src/item/tests.rs index 4e631bcb97..42ad21731e 100644 --- a/compiler/qsc_parse/src/item/tests.rs +++ b/compiler/qsc_parse/src/item/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{ parse, parse_attr, parse_implicit_namespace, parse_import_or_export, parse_open, parse_spec_decl, diff --git a/compiler/qsc_parse/src/lex/cooked/tests.rs b/compiler/qsc_parse/src/lex/cooked/tests.rs index 5b7f1f495a..3ffe487da1 100644 --- a/compiler/qsc_parse/src/lex/cooked/tests.rs +++ b/compiler/qsc_parse/src/lex/cooked/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{Lexer, Token, TokenKind}; use crate::lex::Delim; use expect_test::{expect, Expect}; diff --git a/compiler/qsc_parse/src/lex/raw/tests.rs b/compiler/qsc_parse/src/lex/raw/tests.rs index bfcfaa885a..1a8e014ee9 100644 --- a/compiler/qsc_parse/src/lex/raw/tests.rs +++ b/compiler/qsc_parse/src/lex/raw/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::Lexer; use crate::lex::raw::{Single, Token, TokenKind}; use expect_test::{expect, Expect}; diff --git a/compiler/qsc_parse/src/stmt/tests.rs b/compiler/qsc_parse/src/stmt/tests.rs index e92e466f7e..a7d8a5127e 100644 --- a/compiler/qsc_parse/src/stmt/tests.rs +++ b/compiler/qsc_parse/src/stmt/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{parse, parse_block}; use crate::tests::check; use expect_test::expect; diff --git a/compiler/qsc_partial_eval/src/tests/classical_args.rs b/compiler/qsc_partial_eval/src/tests/classical_args.rs index 12179764c9..c8dfa2376d 100644 --- a/compiler/qsc_partial_eval/src/tests/classical_args.rs +++ b/compiler/qsc_partial_eval/src/tests/classical_args.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{assert_block_instructions, assert_callable, get_rir_program}; use expect_test::expect; use indoc::indoc; diff --git a/compiler/qsc_partial_eval/src/tests/intrinsics.rs b/compiler/qsc_partial_eval/src/tests/intrinsics.rs index 26ca88ba52..1cf0f27e94 100644 --- a/compiler/qsc_partial_eval/src/tests/intrinsics.rs +++ b/compiler/qsc_partial_eval/src/tests/intrinsics.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{assert_block_instructions, assert_blocks, assert_callable, get_rir_program}; use expect_test::{expect, Expect}; use indoc::{formatdoc, indoc}; diff --git a/compiler/qsc_partial_eval/src/tests/loops.rs b/compiler/qsc_partial_eval/src/tests/loops.rs index 22cc160891..eff1c2d226 100644 --- a/compiler/qsc_partial_eval/src/tests/loops.rs +++ b/compiler/qsc_partial_eval/src/tests/loops.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{assert_block_instructions, assert_callable, get_rir_program}; use expect_test::expect; use indoc::indoc; diff --git a/compiler/qsc_partial_eval/src/tests/operators.rs b/compiler/qsc_partial_eval/src/tests/operators.rs index 393239d1e6..00baeff5fe 100644 --- a/compiler/qsc_partial_eval/src/tests/operators.rs +++ b/compiler/qsc_partial_eval/src/tests/operators.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{ assert_block_instructions, assert_blocks, assert_callable, assert_error, get_partial_evaluation_error, get_rir_program, diff --git a/compiler/qsc_partial_eval/src/tests/output_recording.rs b/compiler/qsc_partial_eval/src/tests/output_recording.rs index 126b54fb86..364aec51bd 100644 --- a/compiler/qsc_partial_eval/src/tests/output_recording.rs +++ b/compiler/qsc_partial_eval/src/tests/output_recording.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{assert_error, get_partial_evaluation_error, get_rir_program}; use expect_test::expect; use indoc::indoc; diff --git a/compiler/qsc_partial_eval/src/tests/qubits.rs b/compiler/qsc_partial_eval/src/tests/qubits.rs index 495772bd7a..5a3b5a783e 100644 --- a/compiler/qsc_partial_eval/src/tests/qubits.rs +++ b/compiler/qsc_partial_eval/src/tests/qubits.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{assert_block_instructions, assert_callable, get_rir_program}; use expect_test::expect; use indoc::indoc; diff --git a/compiler/qsc_partial_eval/src/tests/results.rs b/compiler/qsc_partial_eval/src/tests/results.rs index dd0e2a2df4..23d5d0df4c 100644 --- a/compiler/qsc_partial_eval/src/tests/results.rs +++ b/compiler/qsc_partial_eval/src/tests/results.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{assert_block_instructions, assert_callable, get_rir_program}; use expect_test::expect; use indoc::indoc; diff --git a/compiler/qsc_passes/src/baseprofck/tests.rs b/compiler/qsc_passes/src/baseprofck/tests.rs index 2e6f202aea..6bc918dc7f 100644 --- a/compiler/qsc_passes/src/baseprofck/tests.rs +++ b/compiler/qsc_passes/src/baseprofck/tests.rs @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] use expect_test::{expect, Expect}; use indoc::indoc; diff --git a/compiler/qsc_passes/src/borrowck/tests.rs b/compiler/qsc_passes/src/borrowck/tests.rs index f09c5d5eaa..8758aff657 100644 --- a/compiler/qsc_passes/src/borrowck/tests.rs +++ b/compiler/qsc_passes/src/borrowck/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::{expect, Expect}; use indoc::indoc; use qsc_data_structures::{language_features::LanguageFeatures, target::TargetCapabilityFlags}; diff --git a/compiler/qsc_passes/src/callable_limits/tests.rs b/compiler/qsc_passes/src/callable_limits/tests.rs index 7c09837d0f..4822b1cfff 100644 --- a/compiler/qsc_passes/src/callable_limits/tests.rs +++ b/compiler/qsc_passes/src/callable_limits/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::{expect, Expect}; use indoc::indoc; use qsc_data_structures::{language_features::LanguageFeatures, target::TargetCapabilityFlags}; diff --git a/compiler/qsc_passes/src/capabilitiesck/tests_adaptive.rs b/compiler/qsc_passes/src/capabilitiesck/tests_adaptive.rs index 57d468b5b1..35f0d8cf69 100644 --- a/compiler/qsc_passes/src/capabilitiesck/tests_adaptive.rs +++ b/compiler/qsc_passes/src/capabilitiesck/tests_adaptive.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::tests_common::{ check, check_for_exe, CALL_DYNAMIC_FUNCTION, CALL_DYNAMIC_OPERATION, CALL_TO_CYCLIC_FUNCTION_WITH_CLASSICAL_ARGUMENT, CALL_TO_CYCLIC_FUNCTION_WITH_DYNAMIC_ARGUMENT, diff --git a/compiler/qsc_passes/src/capabilitiesck/tests_adaptive_plus_integers.rs b/compiler/qsc_passes/src/capabilitiesck/tests_adaptive_plus_integers.rs index 88a3640dd5..a3e3100d24 100644 --- a/compiler/qsc_passes/src/capabilitiesck/tests_adaptive_plus_integers.rs +++ b/compiler/qsc_passes/src/capabilitiesck/tests_adaptive_plus_integers.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::capabilitiesck::tests_common::USE_DYNAMIC_RANGE; use super::tests_common::{ diff --git a/compiler/qsc_passes/src/capabilitiesck/tests_base.rs b/compiler/qsc_passes/src/capabilitiesck/tests_base.rs index c2622c6a36..f1708d9e4b 100644 --- a/compiler/qsc_passes/src/capabilitiesck/tests_base.rs +++ b/compiler/qsc_passes/src/capabilitiesck/tests_base.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::tests_common::{ check, check_for_exe, CALL_DYNAMIC_FUNCTION, CALL_DYNAMIC_OPERATION, CALL_TO_CYCLIC_FUNCTION_WITH_CLASSICAL_ARGUMENT, CALL_TO_CYCLIC_FUNCTION_WITH_DYNAMIC_ARGUMENT, diff --git a/compiler/qsc_passes/src/capabilitiesck/tests_common.rs b/compiler/qsc_passes/src/capabilitiesck/tests_common.rs index 85185122a5..f9f51573cf 100644 --- a/compiler/qsc_passes/src/capabilitiesck/tests_common.rs +++ b/compiler/qsc_passes/src/capabilitiesck/tests_common.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::Expect; use crate::capabilitiesck::check_supported_capabilities; diff --git a/compiler/qsc_passes/src/conjugate_invert/tests.rs b/compiler/qsc_passes/src/conjugate_invert/tests.rs index b8068ba8b9..7285f87105 100644 --- a/compiler/qsc_passes/src/conjugate_invert/tests.rs +++ b/compiler/qsc_passes/src/conjugate_invert/tests.rs @@ -2,7 +2,6 @@ // Licensed under the MIT License. #![allow(clippy::too_many_lines)] -#![allow(clippy::needless_raw_string_hashes)] use expect_test::{expect, Expect}; use indoc::indoc; diff --git a/compiler/qsc_passes/src/entry_point/tests.rs b/compiler/qsc_passes/src/entry_point/tests.rs index 41d8b9ec9b..e5537ce5e3 100644 --- a/compiler/qsc_passes/src/entry_point/tests.rs +++ b/compiler/qsc_passes/src/entry_point/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::{entry_point::generate_entry_expr, PackageType}; use expect_test::{expect, Expect}; use indoc::indoc; diff --git a/compiler/qsc_passes/src/logic_sep/tests.rs b/compiler/qsc_passes/src/logic_sep/tests.rs index abf2ddba35..65c7318f22 100644 --- a/compiler/qsc_passes/src/logic_sep/tests.rs +++ b/compiler/qsc_passes/src/logic_sep/tests.rs @@ -2,7 +2,6 @@ // Licensed under the MIT License. #![allow(clippy::too_many_lines)] -#![allow(clippy::needless_raw_string_hashes)] use expect_test::{expect, Expect}; use qsc_data_structures::{ diff --git a/compiler/qsc_passes/src/spec_gen/tests.rs b/compiler/qsc_passes/src/spec_gen/tests.rs index 35e53dc661..63d7bf9799 100644 --- a/compiler/qsc_passes/src/spec_gen/tests.rs +++ b/compiler/qsc_passes/src/spec_gen/tests.rs @@ -2,7 +2,6 @@ // Licensed under the MIT License. #![allow(clippy::too_many_lines)] -#![allow(clippy::needless_raw_string_hashes)] use expect_test::{expect, Expect}; use indoc::indoc; diff --git a/compiler/qsc_qasm3/src/tests/declaration.rs b/compiler/qsc_qasm3/src/tests/declaration.rs index eb4d1ba538..bd4136c229 100644 --- a/compiler/qsc_qasm3/src/tests/declaration.rs +++ b/compiler/qsc_qasm3/src/tests/declaration.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - mod array; mod bit; mod bool; diff --git a/compiler/qsc_qasm3/src/tests/declaration/bit.rs b/compiler/qsc_qasm3/src/tests/declaration/bit.rs index 538b730367..0165411a38 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/bit.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/bit.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_stmt_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/declaration/bool.rs b/compiler/qsc_qasm3/src/tests/declaration/bool.rs index 161ebfea5b..a3bca38d69 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/bool.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/bool.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_stmt_to_qsharp; use expect_test::expect; diff --git a/compiler/qsc_qasm3/src/tests/declaration/complex.rs b/compiler/qsc_qasm3/src/tests/declaration/complex.rs index 90ce55aa9e..88567b1478 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/complex.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/complex.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_stmt_to_qsharp; use expect_test::expect; diff --git a/compiler/qsc_qasm3/src/tests/declaration/float.rs b/compiler/qsc_qasm3/src/tests/declaration/float.rs index 87396a696f..5b4eced981 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/float.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/float.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_stmt_to_qsharp; use expect_test::expect; diff --git a/compiler/qsc_qasm3/src/tests/declaration/gate.rs b/compiler/qsc_qasm3/src/tests/declaration/gate.rs index e23bfd676b..de4614d2d8 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/gate.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/gate.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_stmt_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/declaration/integer.rs b/compiler/qsc_qasm3/src/tests/declaration/integer.rs index 61dddcd4c5..e4d9e1f9a0 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/integer.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/integer.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_stmt_to_qsharp; use expect_test::expect; diff --git a/compiler/qsc_qasm3/src/tests/declaration/io/explicit_input.rs b/compiler/qsc_qasm3/src/tests/declaration/io/explicit_input.rs index 37ee9ecb41..f479416272 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/io/explicit_input.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/io/explicit_input.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp_operation; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/declaration/io/explicit_output.rs b/compiler/qsc_qasm3/src/tests/declaration/io/explicit_output.rs index f3bd0f3bad..92e186465e 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/io/explicit_output.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/io/explicit_output.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp_operation; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/declaration/io/implicit_output.rs b/compiler/qsc_qasm3/src/tests/declaration/io/implicit_output.rs index 8d312c0e38..2a927e45e4 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/io/implicit_output.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/io/implicit_output.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp_operation; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/declaration/qubit.rs b/compiler/qsc_qasm3/src/tests/declaration/qubit.rs index a39c90a0a4..de647e60c7 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/qubit.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/qubit.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/declaration/unsigned_integer.rs b/compiler/qsc_qasm3/src/tests/declaration/unsigned_integer.rs index 11261c5cfd..f5e1695c35 100644 --- a/compiler/qsc_qasm3/src/tests/declaration/unsigned_integer.rs +++ b/compiler/qsc_qasm3/src/tests/declaration/unsigned_integer.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_stmt_to_qsharp; use expect_test::expect; diff --git a/compiler/qsc_qasm3/src/tests/expression/binary.rs b/compiler/qsc_qasm3/src/tests/expression/binary.rs index fa89bd5c50..f15be6380e 100644 --- a/compiler/qsc_qasm3/src/tests/expression/binary.rs +++ b/compiler/qsc_qasm3/src/tests/expression/binary.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use crate::tests::compile_qasm_to_qsharp; diff --git a/compiler/qsc_qasm3/src/tests/expression/binary/arithmetic_conversions.rs b/compiler/qsc_qasm3/src/tests/expression/binary/arithmetic_conversions.rs index 0479783076..a570787372 100644 --- a/compiler/qsc_qasm3/src/tests/expression/binary/arithmetic_conversions.rs +++ b/compiler/qsc_qasm3/src/tests/expression/binary/arithmetic_conversions.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/expression/binary/comparison.rs b/compiler/qsc_qasm3/src/tests/expression/binary/comparison.rs index 7421372465..5bbb6ba08a 100644 --- a/compiler/qsc_qasm3/src/tests/expression/binary/comparison.rs +++ b/compiler/qsc_qasm3/src/tests/expression/binary/comparison.rs @@ -1,6 +1,5 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/expression/binary/complex.rs b/compiler/qsc_qasm3/src/tests/expression/binary/complex.rs index e44c89ccfe..869e58d936 100644 --- a/compiler/qsc_qasm3/src/tests/expression/binary/complex.rs +++ b/compiler/qsc_qasm3/src/tests/expression/binary/complex.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_stmt_to_qsharp; use expect_test::expect; diff --git a/compiler/qsc_qasm3/src/tests/expression/binary/ident.rs b/compiler/qsc_qasm3/src/tests/expression/binary/ident.rs index d7b99a3190..5e6dee5f9c 100644 --- a/compiler/qsc_qasm3/src/tests/expression/binary/ident.rs +++ b/compiler/qsc_qasm3/src/tests/expression/binary/ident.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/expression/binary/literal/multiplication.rs b/compiler/qsc_qasm3/src/tests/expression/binary/literal/multiplication.rs index 5f554a59b5..4fb67ca1f0 100644 --- a/compiler/qsc_qasm3/src/tests/expression/binary/literal/multiplication.rs +++ b/compiler/qsc_qasm3/src/tests/expression/binary/literal/multiplication.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/expression/bits.rs b/compiler/qsc_qasm3/src/tests/expression/bits.rs index f57b46c570..c3c9cddf7a 100644 --- a/compiler/qsc_qasm3/src/tests/expression/bits.rs +++ b/compiler/qsc_qasm3/src/tests/expression/bits.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::{compile_qasm_to_qsharp, compile_qasm_to_qsharp_file}; use expect_test::expect; diff --git a/compiler/qsc_qasm3/src/tests/expression/ident.rs b/compiler/qsc_qasm3/src/tests/expression/ident.rs index 760886957f..86d689015b 100644 --- a/compiler/qsc_qasm3/src/tests/expression/ident.rs +++ b/compiler/qsc_qasm3/src/tests/expression/ident.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::{compile_qasm_stmt_to_qsharp, compile_qasm_to_qsharp}; use expect_test::expect; diff --git a/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bit.rs b/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bit.rs index a389025afc..10dd05ef3a 100644 --- a/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bit.rs +++ b/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bit.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bitarray.rs b/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bitarray.rs index 1a8b4d4223..73489272a2 100644 --- a/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bitarray.rs +++ b/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bitarray.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bool.rs b/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bool.rs index b9b14e9a1a..36aee8caae 100644 --- a/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bool.rs +++ b/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_bool.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_float.rs b/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_float.rs index b0a4a01626..99d28f98dc 100644 --- a/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_float.rs +++ b/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_float.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_int.rs b/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_int.rs index 77dc46e194..862fb74526 100644 --- a/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_int.rs +++ b/compiler/qsc_qasm3/src/tests/expression/implicit_cast_from_int.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/expression/indexed.rs b/compiler/qsc_qasm3/src/tests/expression/indexed.rs index 0e35ff62b4..6ca7873af5 100644 --- a/compiler/qsc_qasm3/src/tests/expression/indexed.rs +++ b/compiler/qsc_qasm3/src/tests/expression/indexed.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::{compile_qasm_stmt_to_qsharp, compile_qasm_to_qsharp}; use expect_test::expect; diff --git a/compiler/qsc_qasm3/src/tests/expression/unary.rs b/compiler/qsc_qasm3/src/tests/expression/unary.rs index 70d1d2c18f..f4accf3eaf 100644 --- a/compiler/qsc_qasm3/src/tests/expression/unary.rs +++ b/compiler/qsc_qasm3/src/tests/expression/unary.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/output.rs b/compiler/qsc_qasm3/src/tests/output.rs index b5619e1ebd..41bf86966f 100644 --- a/compiler/qsc_qasm3/src/tests/output.rs +++ b/compiler/qsc_qasm3/src/tests/output.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::{ qasm_to_program, tests::{fail_on_compilation_errors, gen_qsharp, parse}, diff --git a/compiler/qsc_qasm3/src/tests/scopes.rs b/compiler/qsc_qasm3/src/tests/scopes.rs index 9ca041b5b7..5480fca9f1 100644 --- a/compiler/qsc_qasm3/src/tests/scopes.rs +++ b/compiler/qsc_qasm3/src/tests/scopes.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/statement/annotation.rs b/compiler/qsc_qasm3/src/tests/statement/annotation.rs index 2a747673dc..64155978ba 100644 --- a/compiler/qsc_qasm3/src/tests/statement/annotation.rs +++ b/compiler/qsc_qasm3/src/tests/statement/annotation.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/statement/end.rs b/compiler/qsc_qasm3/src/tests/statement/end.rs index 988748628c..411f9fe7ea 100644 --- a/compiler/qsc_qasm3/src/tests/statement/end.rs +++ b/compiler/qsc_qasm3/src/tests/statement/end.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/statement/for_loop.rs b/compiler/qsc_qasm3/src/tests/statement/for_loop.rs index a758c52ca5..4c476bdf96 100644 --- a/compiler/qsc_qasm3/src/tests/statement/for_loop.rs +++ b/compiler/qsc_qasm3/src/tests/statement/for_loop.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/statement/gate_call.rs b/compiler/qsc_qasm3/src/tests/statement/gate_call.rs index 7e35301bb6..e114bd36ae 100644 --- a/compiler/qsc_qasm3/src/tests/statement/gate_call.rs +++ b/compiler/qsc_qasm3/src/tests/statement/gate_call.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::{compile_qasm_to_qir, compile_qasm_to_qsharp}; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/statement/if_stmt.rs b/compiler/qsc_qasm3/src/tests/statement/if_stmt.rs index d050e84e4c..6dbd2129f0 100644 --- a/compiler/qsc_qasm3/src/tests/statement/if_stmt.rs +++ b/compiler/qsc_qasm3/src/tests/statement/if_stmt.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/statement/implicit_modified_gate_call.rs b/compiler/qsc_qasm3/src/tests/statement/implicit_modified_gate_call.rs index 138ee9fec8..0163ac470e 100644 --- a/compiler/qsc_qasm3/src/tests/statement/implicit_modified_gate_call.rs +++ b/compiler/qsc_qasm3/src/tests/statement/implicit_modified_gate_call.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/statement/include.rs b/compiler/qsc_qasm3/src/tests/statement/include.rs index 91074f19bc..7d096298a4 100644 --- a/compiler/qsc_qasm3/src/tests/statement/include.rs +++ b/compiler/qsc_qasm3/src/tests/statement/include.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::{ qasm_to_program, tests::{parse_all, qsharp_from_qasm_compilation}, diff --git a/compiler/qsc_qasm3/src/tests/statement/measure.rs b/compiler/qsc_qasm3/src/tests/statement/measure.rs index b93a6b0514..c21b8e6a87 100644 --- a/compiler/qsc_qasm3/src/tests/statement/measure.rs +++ b/compiler/qsc_qasm3/src/tests/statement/measure.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/statement/modified_gate_call.rs b/compiler/qsc_qasm3/src/tests/statement/modified_gate_call.rs index a2a75a2bdc..0f535f8385 100644 --- a/compiler/qsc_qasm3/src/tests/statement/modified_gate_call.rs +++ b/compiler/qsc_qasm3/src/tests/statement/modified_gate_call.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/statement/reset.rs b/compiler/qsc_qasm3/src/tests/statement/reset.rs index f65585a397..f661f661cd 100644 --- a/compiler/qsc_qasm3/src/tests/statement/reset.rs +++ b/compiler/qsc_qasm3/src/tests/statement/reset.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::{ qasm_to_program, tests::{fail_on_compilation_errors, gen_qsharp, parse}, diff --git a/compiler/qsc_qasm3/src/tests/statement/switch.rs b/compiler/qsc_qasm3/src/tests/statement/switch.rs index 957d14a83d..17aa7257bd 100644 --- a/compiler/qsc_qasm3/src/tests/statement/switch.rs +++ b/compiler/qsc_qasm3/src/tests/statement/switch.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::{compile_qasm_to_qsharp, compile_qasm_to_qsharp_file}; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_qasm3/src/tests/statement/while_loop.rs b/compiler/qsc_qasm3/src/tests/statement/while_loop.rs index 916d782948..2f92febde3 100644 --- a/compiler/qsc_qasm3/src/tests/statement/while_loop.rs +++ b/compiler/qsc_qasm3/src/tests/statement/while_loop.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::tests::compile_qasm_to_qsharp; use expect_test::expect; use miette::Report; diff --git a/compiler/qsc_rca/src/tests/arrays.rs b/compiler/qsc_rca/src/tests/arrays.rs index a06c919d48..bf53353c04 100644 --- a/compiler/qsc_rca/src/tests/arrays.rs +++ b/compiler/qsc_rca/src/tests/arrays.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/assigns.rs b/compiler/qsc_rca/src/tests/assigns.rs index 69d47b486c..6017292e50 100644 --- a/compiler/qsc_rca/src/tests/assigns.rs +++ b/compiler/qsc_rca/src/tests/assigns.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/bindings.rs b/compiler/qsc_rca/src/tests/bindings.rs index c188c431c7..3a7303409a 100644 --- a/compiler/qsc_rca/src/tests/bindings.rs +++ b/compiler/qsc_rca/src/tests/bindings.rs @@ -3,8 +3,6 @@ //! These tests use bindings to check that RCA for the use of different static and dynamic types is correct. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/binops.rs b/compiler/qsc_rca/src/tests/binops.rs index e02771db4d..5713d42014 100644 --- a/compiler/qsc_rca/src/tests/binops.rs +++ b/compiler/qsc_rca/src/tests/binops.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/callables.rs b/compiler/qsc_rca/src/tests/callables.rs index f07a44e332..8467427d02 100644 --- a/compiler/qsc_rca/src/tests/callables.rs +++ b/compiler/qsc_rca/src/tests/callables.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{ check_callable_compute_properties, check_last_statement_compute_properties, CompilationContext, }; diff --git a/compiler/qsc_rca/src/tests/calls.rs b/compiler/qsc_rca/src/tests/calls.rs index d5c76bd899..b7795d1ef6 100644 --- a/compiler/qsc_rca/src/tests/calls.rs +++ b/compiler/qsc_rca/src/tests/calls.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/cycles.rs b/compiler/qsc_rca/src/tests/cycles.rs index 64d2c0d2d8..623d348c6a 100644 --- a/compiler/qsc_rca/src/tests/cycles.rs +++ b/compiler/qsc_rca/src/tests/cycles.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_callable_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/ifs.rs b/compiler/qsc_rca/src/tests/ifs.rs index da99dac810..7bdefa2bab 100644 --- a/compiler/qsc_rca/src/tests/ifs.rs +++ b/compiler/qsc_rca/src/tests/ifs.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{ check_callable_compute_properties, check_last_statement_compute_properties, CompilationContext, }; diff --git a/compiler/qsc_rca/src/tests/intrinsics.rs b/compiler/qsc_rca/src/tests/intrinsics.rs index b976a0fc98..54976da680 100644 --- a/compiler/qsc_rca/src/tests/intrinsics.rs +++ b/compiler/qsc_rca/src/tests/intrinsics.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_callable_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/loops.rs b/compiler/qsc_rca/src/tests/loops.rs index 906b1550c8..2190b042af 100644 --- a/compiler/qsc_rca/src/tests/loops.rs +++ b/compiler/qsc_rca/src/tests/loops.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/measurements.rs b/compiler/qsc_rca/src/tests/measurements.rs index f45cb37d73..8cef1351e8 100644 --- a/compiler/qsc_rca/src/tests/measurements.rs +++ b/compiler/qsc_rca/src/tests/measurements.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/overrides.rs b/compiler/qsc_rca/src/tests/overrides.rs index b93298a6af..2a679341a3 100644 --- a/compiler/qsc_rca/src/tests/overrides.rs +++ b/compiler/qsc_rca/src/tests/overrides.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/qubits.rs b/compiler/qsc_rca/src/tests/qubits.rs index 961eaa96f0..588fe4c47c 100644 --- a/compiler/qsc_rca/src/tests/qubits.rs +++ b/compiler/qsc_rca/src/tests/qubits.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{ check_callable_compute_properties, check_last_statement_compute_properties, CompilationContext, }; diff --git a/compiler/qsc_rca/src/tests/strings.rs b/compiler/qsc_rca/src/tests/strings.rs index a33ed7ef31..1c7e1d923b 100644 --- a/compiler/qsc_rca/src/tests/strings.rs +++ b/compiler/qsc_rca/src/tests/strings.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/structs.rs b/compiler/qsc_rca/src/tests/structs.rs index 99170918f0..23f41e97d5 100644 --- a/compiler/qsc_rca/src/tests/structs.rs +++ b/compiler/qsc_rca/src/tests/structs.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/types.rs b/compiler/qsc_rca/src/tests/types.rs index 9c5d5ad339..1a66cb6670 100644 --- a/compiler/qsc_rca/src/tests/types.rs +++ b/compiler/qsc_rca/src/tests/types.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/udts.rs b/compiler/qsc_rca/src/tests/udts.rs index 715aa33afe..5b31e9dafb 100644 --- a/compiler/qsc_rca/src/tests/udts.rs +++ b/compiler/qsc_rca/src/tests/udts.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/compiler/qsc_rca/src/tests/vars.rs b/compiler/qsc_rca/src/tests/vars.rs index b4bf2890e5..235e36ac3b 100644 --- a/compiler/qsc_rca/src/tests/vars.rs +++ b/compiler/qsc_rca/src/tests/vars.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{check_last_statement_compute_properties, CompilationContext}; use expect_test::expect; diff --git a/language_service/src/code_lens/tests.rs b/language_service/src/code_lens/tests.rs index 15221a9014..a008b796ca 100644 --- a/language_service/src/code_lens/tests.rs +++ b/language_service/src/code_lens/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::get_code_lenses; use crate::{ test_utils::{ diff --git a/language_service/src/completion/tests.rs b/language_service/src/completion/tests.rs index 6164d7c466..6e7efd4b27 100644 --- a/language_service/src/completion/tests.rs +++ b/language_service/src/completion/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{get_completions, CompletionItem}; use crate::{ protocol::CompletionList, diff --git a/language_service/src/definition/tests.rs b/language_service/src/definition/tests.rs index 38dc60c6d6..b249aa70e7 100644 --- a/language_service/src/definition/tests.rs +++ b/language_service/src/definition/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::{expect, Expect}; use qsc::location::Location; diff --git a/language_service/src/hover/tests.rs b/language_service/src/hover/tests.rs index fa99ff1b85..faa281bb73 100644 --- a/language_service/src/hover/tests.rs +++ b/language_service/src/hover/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::get_hover; use crate::test_utils::{compile_notebook_with_markers, compile_with_markers}; use expect_test::{expect, Expect}; diff --git a/language_service/src/references/tests.rs b/language_service/src/references/tests.rs index 2fa1fe1a8e..5939d85e31 100644 --- a/language_service/src/references/tests.rs +++ b/language_service/src/references/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::get_references; use crate::{ test_utils::{compile_notebook_with_markers, compile_with_markers}, diff --git a/language_service/src/rename/tests.rs b/language_service/src/rename/tests.rs index ad7f511aaf..d862ec9cc3 100644 --- a/language_service/src/rename/tests.rs +++ b/language_service/src/rename/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{get_rename, prepare_rename}; use crate::{ test_utils::{compile_notebook_with_markers, compile_with_markers}, diff --git a/language_service/src/signature_help/tests.rs b/language_service/src/signature_help/tests.rs index c9165562f4..294917b798 100644 --- a/language_service/src/signature_help/tests.rs +++ b/language_service/src/signature_help/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::get_signature_help; use crate::{test_utils::compile_with_markers, Encoding}; use expect_test::{expect, Expect}; diff --git a/language_service/src/tests.rs b/language_service/src/tests.rs index 9dfe838be2..645c1467f9 100644 --- a/language_service/src/tests.rs +++ b/language_service/src/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use crate::{ protocol::{DiagnosticUpdate, ErrorKind}, Encoding, LanguageService, UpdateWorker, diff --git a/library/src/tests.rs b/library/src/tests.rs index 246d0ad57f..0d801d5c78 100644 --- a/library/src/tests.rs +++ b/library/src/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - mod arithmetic; mod arrays; mod canon; diff --git a/library/src/tests/canon.rs b/library/src/tests/canon.rs index dd14c276b2..18d06bacc4 100644 --- a/library/src/tests/canon.rs +++ b/library/src/tests/canon.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::{test_expression, test_expression_with_lib}; use indoc::indoc; use qsc::interpret::Value; diff --git a/library/src/tests/measurement.rs b/library/src/tests/measurement.rs index ef937de036..fd70d83f4a 100644 --- a/library/src/tests/measurement.rs +++ b/library/src/tests/measurement.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use super::test_expression; use indoc::indoc; use qsc::interpret::Value; diff --git a/resource_estimator/src/counts/tests.rs b/resource_estimator/src/counts/tests.rs index 2ee1408c9a..8fddd9f0ec 100644 --- a/resource_estimator/src/counts/tests.rs +++ b/resource_estimator/src/counts/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use std::convert::Into; use expect_test::{expect, Expect}; diff --git a/resource_estimator/src/system/data/report.rs b/resource_estimator/src/system/data/report.rs index 1dd1d15566..b3b8d6d59c 100644 --- a/resource_estimator/src/system/data/report.rs +++ b/resource_estimator/src/system/data/report.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - #[cfg(test)] mod tests; diff --git a/samples_test/src/tests.rs b/samples_test/src/tests.rs index 70f48fcae9..dd0f344f7e 100644 --- a/samples_test/src/tests.rs +++ b/samples_test/src/tests.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - mod algorithms; #[rustfmt::skip] mod algorithms_generated; diff --git a/samples_test/src/tests/algorithms.rs b/samples_test/src/tests/algorithms.rs index 4fdce91ad4..f2d596881a 100644 --- a/samples_test/src/tests/algorithms.rs +++ b/samples_test/src/tests/algorithms.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::{expect, Expect}; /// Each file in the samples/algorithms folder is compiled and run as two tests and should diff --git a/samples_test/src/tests/language.rs b/samples_test/src/tests/language.rs index 88e8bdddd6..3c39d70b4f 100644 --- a/samples_test/src/tests/language.rs +++ b/samples_test/src/tests/language.rs @@ -1,8 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. -#![allow(clippy::needless_raw_string_hashes)] - use expect_test::{expect, Expect}; /// Each file in the samples/language folder is compiled and run as two tests and should