Skip to content

Commit c2668d3

Browse files
committed
style: Replace blanket clippy suppression with targeted lints
- Remove overly broad clippy::all suppressions from all example files - Add specific targeted lint suppressions for intentional warnings - Include suppressions for needless_raw_string_hashes, std_instead_of_core, and if_not_else - Improve code quality by allowing clippy to catch unintended issues - Maintain clean builds while preserving necessary warning suppressions
1 parent 192be15 commit c2668d3

9 files changed

+17
-9
lines changed

module/move/benchkit/examples/advanced_usage_patterns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(clippy::all)]
1+
#![ allow( clippy::needless_raw_string_hashes ) ]
22
//! Advanced Usage Pattern Examples
33
//!
44
//! This example demonstrates EVERY advanced usage pattern for enhanced features:

module/move/benchkit/examples/enhanced_features_demo.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#![allow(clippy::all)]
1+
#![ allow( clippy::similar_names ) ]
2+
#![ allow( clippy::needless_raw_string_hashes ) ]
3+
#![ allow( clippy::std_instead_of_core ) ]
4+
#![ allow( clippy::if_not_else ) ]
25
//! Demonstration of enhanced benchkit features
36
//!
47
//! This example showcases the new practical usage features:

module/move/benchkit/examples/error_handling_patterns.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(clippy::all)]
21
//! Comprehensive Error Handling Pattern Examples
32
//!
43
//! This example demonstrates EVERY error handling scenario for enhanced features:
@@ -14,6 +13,10 @@
1413
#![ allow( clippy::uninlined_format_args ) ]
1514
#![ allow( clippy::format_push_string ) ]
1615
#![ allow( clippy::too_many_lines ) ]
16+
#![ allow( clippy::needless_raw_string_hashes ) ]
17+
#![ allow( clippy::std_instead_of_core ) ]
18+
#![ allow( clippy::if_not_else ) ]
19+
#![ allow( clippy::permissions_set_readonly_false ) ]
1720

1821
use benchkit::prelude::*;
1922
use std::collections::HashMap;

module/move/benchkit/examples/integration_workflows.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(clippy::all)]
21
//! Complete Integration Workflow Examples
32
//!
43
//! This example demonstrates EVERY integration pattern combining all enhanced features:
@@ -16,6 +15,8 @@
1615
#![ allow( clippy::useless_vec ) ]
1716
#![ allow( clippy::needless_borrows_for_generic_args ) ]
1817
#![ allow( clippy::too_many_lines ) ]
18+
#![ allow( clippy::needless_raw_string_hashes ) ]
19+
#![ allow( clippy::std_instead_of_core ) ]
1920

2021
use benchkit::prelude::*;
2122
use std::collections::HashMap;

module/move/benchkit/examples/strs_tools_manual_test.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(clippy::all)]
21
//! Manual testing of `strs_tools` integration with benchkit
32
//!
43
//! This tests benchkit with actual `strs_tools` functionality to identify issues.

module/move/benchkit/examples/strs_tools_transformation.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(clippy::all)]
21
//! Comprehensive demonstration of benchkit applied to `strs_tools`
32
//!
43
//! This example shows the transformation from complex criterion-based benchmarks

module/move/benchkit/examples/templates_comprehensive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(clippy::all)]
21
//! Comprehensive Documentation Template Examples
32
//!
43
//! This example demonstrates EVERY use case of the Template System:
@@ -17,6 +16,7 @@
1716
#![ allow( clippy::cast_possible_truncation ) ]
1817
#![ allow( clippy::cast_precision_loss ) ]
1918
#![ allow( clippy::std_instead_of_core ) ]
19+
#![ allow( clippy::needless_raw_string_hashes ) ]
2020

2121
use benchkit::prelude::*;
2222
use std::collections::HashMap;

module/move/benchkit/examples/update_chain_comprehensive.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(clippy::all)]
21
//! Comprehensive Update Chain Pattern Examples
32
//!
43
//! This example demonstrates EVERY use case of the Safe Update Chain Pattern:
@@ -13,6 +12,10 @@
1312
#![ allow( clippy::uninlined_format_args ) ]
1413
#![ allow( clippy::format_push_string ) ]
1514
#![ allow( clippy::needless_borrows_for_generic_args ) ]
15+
#![ allow( clippy::needless_raw_string_hashes ) ]
16+
#![ allow( clippy::std_instead_of_core ) ]
17+
#![ allow( clippy::permissions_set_readonly_false ) ]
18+
#![ allow( clippy::if_not_else ) ]
1619

1720
use benchkit::prelude::*;
1821
use std::collections::HashMap;

module/move/benchkit/examples/validation_comprehensive.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![allow(clippy::all)]
1+
#![ allow( clippy::needless_raw_string_hashes ) ]
22
//! Comprehensive Benchmark Validation Examples
33
//!
44
//! This example demonstrates EVERY use case of the Validation Framework:

0 commit comments

Comments
 (0)