RM error on bad filename (#1244)

* rm error on bad filename

* De-lint

* Fix error message in test
This commit is contained in:
Corvus Corax
2020-01-24 13:16:41 -06:00
committed by Jonathan Turner
parent 798a24eda5
commit a5e1372bc2
4 changed files with 124 additions and 87 deletions

View File

@ -294,6 +294,19 @@ impl Value {
}
}
impl Into<Value> for String {
fn into(self) -> Value {
let end = self.len();
Value {
value: self.into(),
tag: Tag {
anchor: None,
span: Span::new(0, end),
},
}
}
}
impl Into<UntaggedValue> for &str {
/// Convert a string slice into an UntaggedValue
fn into(self) -> UntaggedValue {