Skip to content

Commit 0f63894

Browse files
committed
TEST: stdarch-gen-loongarch: Modernization of coding styles
It modernizes the code of stdarch-gen-loongarch by fixing Clippy warnings (total: 1). Confirmed that the exact same code will be generated.
1 parent 0c47579 commit 0f63894

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)