Skip to content

Commit e4df79d

Browse files
authored
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
1 parent 74c488b commit e4df79d

File tree

116 files changed

+2
-222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+2
-222
lines changed

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ unwrap_used = "warn"
8888
missing_errors_doc = "allow"
8989
missing_panics_doc = "allow"
9090
module_name_repetitions = "allow"
91+
needless_raw_string_hashes = "allow"
92+
unnecessary_wraps = "allow"
9193

9294
[profile.release]
9395
debug = "limited"

compiler/qsc/src/interpret/debug/tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
#![allow(clippy::needless_raw_string_hashes)]
5-
64
use indoc::indoc;
75
use miette::Result;
86
use qsc_data_structures::{language_features::LanguageFeatures, target::TargetCapabilityFlags};

compiler/qsc/src/interpret/debugger_tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
#![allow(clippy::needless_raw_string_hashes)]
5-
64
use crate::interpret::Debugger;
75
use crate::line_column::Encoding;
86
use qsc_data_structures::language_features::LanguageFeatures;

compiler/qsc/src/interpret/package_tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
#![allow(clippy::needless_raw_string_hashes)]
5-
64
use crate::{interpret::Interpreter, packages::BuildableProgram};
75
use indoc::indoc;
86
use qsc_data_structures::{language_features::LanguageFeatures, target::TargetCapabilityFlags};

compiler/qsc/src/interpret/tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
#![allow(clippy::needless_raw_string_hashes)]
5-
64
mod given_interpreter {
75
use crate::interpret::{InterpretResult, Interpreter};
86
use expect_test::Expect;

compiler/qsc_codegen/src/qsharp/spec_decls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
#![allow(clippy::too_many_lines)]
5-
#![allow(clippy::needless_raw_string_hashes)]
65

76
use expect_test::expect;
87
use indoc::indoc;

compiler/qsc_codegen/src/qsharp/test_utils.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
#![allow(clippy::too_many_lines)]
5-
#![allow(clippy::needless_raw_string_hashes)]
65

76
use std::sync::Arc;
87

compiler/qsc_codegen/src/qsharp/tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the MIT License.
33

44
#![allow(clippy::too_many_lines)]
5-
#![allow(clippy::needless_raw_string_hashes)]
65

76
use expect_test::expect;
87
use indoc::indoc;

compiler/qsc_data_structures/src/namespaces/tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
// allowing needless raw hashes here because we auto-update these expected outputs
55
// and don't want to risk weird breakages
66

7-
#![allow(clippy::needless_raw_string_hashes)]
8-
97
use expect_test::expect;
108

119
use super::*;

compiler/qsc_doc_gen/src/generate_docs/tests.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT License.
33

4-
#![allow(clippy::needless_raw_string_hashes)]
5-
64
use super::generate_docs;
75
use expect_test::expect;
86

0 commit comments

Comments
 (0)