Skip to content

Commit d2ff2b3

Browse files
committed
arm-targets: Put struct fields in the same order as the types
1 parent f1d8ad3 commit d2ff2b3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

arm-targets/src/lib.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,25 @@
44
//! be required.
55
#[derive(Default)]
66
pub struct TargetInfo {
7-
profile: Option<Profile>,
8-
arch: Option<Arch>,
97
isa: Option<Isa>,
8+
arch: Option<Arch>,
9+
profile: Option<Profile>,
1010
}
1111

1212
impl TargetInfo {
13-
pub fn profile(&self) -> Option<Profile> {
14-
self.profile
13+
pub fn isa(&self) -> Option<Isa> {
14+
self.isa
1515
}
1616

1717
pub fn arch(&self) -> Option<Arch> {
1818
self.arch
1919
}
2020

21-
pub fn isa(&self) -> Option<Isa> {
22-
self.isa
21+
pub fn profile(&self) -> Option<Profile> {
22+
self.profile
2323
}
2424
}
25+
2526
/// Process the ${TARGET} environment variable, and emit cargo configuration to
2627
/// standard out.
2728
pub fn process() -> TargetInfo {

0 commit comments

Comments
 (0)