Make NodeError::value_error() take two &str arguments, for convenience

parent 4ec908b7
......@@ -26,10 +26,10 @@ impl NodeError {
}
}
pub fn value_error (attr_name: &str, description: String) -> NodeError {
pub fn value_error (attr_name: &str, description: &str) -> NodeError {
NodeError {
attr_name: attr_name.to_string (),
err: AttributeError::Value (description)
err: AttributeError::Value (description.to_string ())
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment