about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTsukasa OI <floss_rust@irq.a4lg.com>2025-05-31 05:06:05 +0000
committerAmanieu d'Antras <amanieu@gmail.com>2025-05-31 09:38:49 +0000
commit9610536476ebb861c99b3c295d062a4e43f4cec2 (patch)
treebf60d3d73e703cb1d2b968678c2592b017e14a4c
parent7168d48c0bd2772cdd90fb9182bfaa28cda80440 (diff)
downloadrust-9610536476ebb861c99b3c295d062a4e43f4cec2.tar.gz
rust-9610536476ebb861c99b3c295d062a4e43f4cec2.zip
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).
-rw-r--r--library/stdarch/crates/stdarch-gen-loongarch/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/stdarch/crates/stdarch-gen-loongarch/src/main.rs b/library/stdarch/crates/stdarch-gen-loongarch/src/main.rs
index ea67682b566..aa9990b6ccd 100644
--- a/library/stdarch/crates/stdarch-gen-loongarch/src/main.rs
+++ b/library/stdarch/crates/stdarch-gen-loongarch/src/main.rs
@@ -74,7 +74,7 @@ impl TargetFeature {
     }
 
     /// Generate a target_feature attribute
-    fn to_target_feature_attr(&self, ins: &str) -> Lines {
+    fn to_target_feature_attr(self, ins: &str) -> Lines {
         Lines::single(Self::attr(
             "target_feature",
             self.as_target_feature_arg(ins),