Skip to content

Commit 3bcad86

Browse files
committed
Fix #1
1 parent 2a7e0c9 commit 3bcad86

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
@@ -34,7 +34,7 @@ pub fn build_tree(val: &json::Value) -> reply::Node {
3434
border: match val.find("border").unwrap().as_string().unwrap().as_ref() {
3535
"normal" => reply::NodeBorder::Normal,
3636
"none" => reply::NodeBorder::None,
37-
"1pixel" => reply::NodeBorder::OnePixel,
37+
"pixel" => reply::NodeBorder::Pixel,
3838
_ => unreachable!()
3939
},
4040
current_border_width: val.find("current_border_width").unwrap().as_i64().unwrap() as i32,

src/reply.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub enum NodeType {
9292
pub enum NodeBorder {
9393
Normal,
9494
None,
95-
OnePixel
95+
Pixel
9696
}
9797

9898
#[derive(Debug)]

0 commit comments

Comments
 (0)