Skip to content

Commit 1297f91

Browse files
authored
Merge pull request #13 from soumya92/master
Use i64 for container ids
2 parents ae798ac + b69dda0 commit 1297f91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn build_tree(val: &json::Value) -> reply::Node {
1414
.collect::<Vec<_>>(),
1515
None => vec![]
1616
},
17-
id: val.find("id").unwrap().as_i64().unwrap() as i32,
17+
id: val.find("id").unwrap().as_i64().unwrap(),
1818
name: match val.find("name") {
1919
Some(n) => match n.as_string() {
2020
Some(s) => Some(s.to_owned()),

src/reply.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub struct Node {
122122
/// The internal ID (actually a C pointer value) of this container. Do not make any
123123
/// assumptions about it. You can use it to (re-)identify and address containers when
124124
/// talking to i3.
125-
pub id: i32,
125+
pub id: i64,
126126

127127
/// The internal name of this container. For all containers which are part of the tree
128128
/// structure down to the workspace contents, this is set to a nice human-readable name of

0 commit comments

Comments
 (0)