Reduce usage of Default::default() to make it easier to refactor.
This commit is contained in:
@@ -196,7 +196,7 @@ fn test_custom_syntax_raw() -> Result<(), Box<EvalAltResult>> {
|
||||
2 => match stream[1].as_str() {
|
||||
"world" => Ok(Some("$$hello".into())),
|
||||
"kitty" => Ok(None),
|
||||
s => Err(LexError::ImproperSymbol(s.to_string(), Default::default())
|
||||
s => Err(LexError::ImproperSymbol(s.to_string(), String::new())
|
||||
.into_err(Position::NONE)
|
||||
.into()),
|
||||
},
|
||||
|
Reference in New Issue
Block a user