Skip to content

Commit 5e6f174

Browse files
committed
stdarch-gen-loongarch: Modernization of the coding style
It modernizes the coding style of the crate stdarch-gen-loongarch by fixing Clippy warnings. Clippy: rust version 1.89.0-nightly (6f6971078 2025-05-28) Number of Fixed Warnings: 1/1 Confirmed that the exact same code will be generated (note that, generated.rs in the repository is *not* an exact output but some spaces removed).
1 parent cc2c41b commit 5e6f174

File tree

1 file changed

+1
-1
lines changed
  • crates/stdarch-gen-loongarch/src

1 file changed

+1
-1
lines changed

crates/stdarch-gen-loongarch/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl TargetFeature {
7474
}
7575

7676
/// Generate a target_feature attribute
77-
fn to_target_feature_attr(&self, ins: &str) -> Lines {
77+
fn to_target_feature_attr(self, ins: &str) -> Lines {
7878
Lines::single(Self::attr(
7979
"target_feature",
8080
self.as_target_feature_arg(ins),

0 commit comments

Comments
 (0)