mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
RM error on bad filename (#1244)
* rm error on bad filename * De-lint * Fix error message in test
This commit is contained in:
committed by
Jonathan Turner
parent
798a24eda5
commit
a5e1372bc2
@ -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 {
|
||||
|
Reference in New Issue
Block a user