Skip to content

Commit 165a99f

Browse files
committed
chore: make fields in SerFunction private
1 parent 55b1ea8 commit 165a99f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/functions/serialization.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ use stable_mir::{CrateDef, DefId};
55
#[derive(Debug, Serialize)]
66
pub struct SerFunction {
77
/// DefId in stable_mir.
8-
pub def_id: String,
8+
def_id: String,
99
/// Every funtion must be declared in a specific file, even for those
1010
/// generated by macros.
11-
pub file: String,
11+
file: String,
1212
/// Attributes are attached the function, but it seems that attributes
1313
/// and function must be separated to query.
14-
pub attrs: Vec<String>,
14+
attrs: Vec<String>,
1515
/// Raw function string, including name, signature, and body.
16-
pub func: String,
16+
func: String,
1717
/// Recursive fnction calls inside the body.
18-
pub callees: Vec<String>,
18+
callees: Vec<String>,
1919
}
2020

2121
impl SerFunction {

0 commit comments

Comments
 (0)