File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ impl FromStr for LispObject {
27
27
} else if s == "t" {
28
28
Ok ( Self :: T )
29
29
} else if s. starts_with ( ":" ) {
30
- Ok ( Self :: Symbol ( s[ 1 ..] . to_string ( ) ) )
30
+ Ok ( Self :: Keyword ( s[ 1 ..] . to_string ( ) ) )
31
31
} else {
32
32
bail ! ( "Supported LispObject: {}" , s)
33
33
}
Original file line number Diff line number Diff line change @@ -92,6 +92,6 @@ fn test_parse_args() {
92
92
assert_eq ! ( cli. verbose. log_level_filter( ) , log:: LevelFilter :: Debug ) ;
93
93
assert_eq ! ( cli. server_cmd, vec![ "server_cmd" , "arg1" ] ) ;
94
94
assert_eq ! ( cli. json_object_type, bytecode:: ObjectType :: Hashtable ) ;
95
- assert_eq ! ( cli. json_null_value, bytecode:: LispObject :: Symbol ( "null" . into( ) ) ) ;
96
- assert_eq ! ( cli. json_false_value, bytecode:: LispObject :: Symbol ( "json-false" . into( ) ) ) ;
95
+ assert_eq ! ( cli. json_null_value, bytecode:: LispObject :: Keyword ( "null" . into( ) ) ) ;
96
+ assert_eq ! ( cli. json_false_value, bytecode:: LispObject :: Keyword ( "json-false" . into( ) ) ) ;
97
97
}
You can’t perform that action at this time.
0 commit comments