Skip to content

Commit 696a358

Browse files
committed
Keep FnIr fields in alphabetical order
1 parent 46f4c9e commit 696a358

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

rule-preprocessor/src/ir.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ pub struct TypeInfo {
5050
pub struct FnIr {
5151
pub body: Vec<BodyFragment>,
5252
#[serde(skip_serializing_if = "Option::is_none")]
53-
pub target_os: Option<String>,
54-
#[serde(skip_serializing_if = "Option::is_none")]
5553
pub generics: Option<BTreeMap<String, Vec<String>>>,
5654
#[serde(skip_serializing_if = "Option::is_none")]
5755
pub multi_statement: Option<bool>,
5856
#[serde(skip_serializing_if = "Option::is_none")]
5957
pub params: Option<BTreeMap<String, TypeInfo>>,
6058
#[serde(skip_serializing_if = "Option::is_none")]
6159
pub return_type: Option<TypeInfo>,
60+
#[serde(skip_serializing_if = "Option::is_none")]
61+
pub target_os: Option<String>,
6262
}
6363

6464
impl FnIr {

rules/socket/ir_unsafe.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@
3535
"text": "libc::SOCK_CLOEXEC"
3636
}
3737
],
38-
"target_os": "linux",
3938
"return_type": {
4039
"type": "i32"
41-
}
40+
},
41+
"target_os": "linux"
4242
},
4343
"f5": {
4444
"body": [
4545
{
4646
"text": "libc::SOCK_NONBLOCK"
4747
}
4848
],
49-
"target_os": "linux",
5049
"return_type": {
5150
"type": "i32"
52-
}
51+
},
52+
"target_os": "linux"
5353
}
5454
}

0 commit comments

Comments
 (0)