about summary refs log tree commit diff
path: root/library/stdarch/crates/stdarch-gen-loongarch/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/stdarch/crates/stdarch-gen-loongarch/src/main.rs')
-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),