removed try_into_value_unknown

This commit is contained in:
Tim 'Piepmatz' Hesse 2024-06-10 12:50:34 +02:00
parent 3ec36cd571
commit b41bfc7134

View File

@ -181,13 +181,6 @@ pub trait TryIntoValue: Sized {
// TODO: instead of ShellError, maybe we could have a IntoValueError that implements Into<ShellError>
/// Tries to convert the given value into a `Value`.
fn try_into_value(self, span: Span) -> Result<Value, ShellError>;
/// Tries to convert the given value to a `Value` with an unknown `Span`.
///
/// Internally this simply calls [`Span::unknown`] for the `span`.
fn try_into_value_unknown(self) -> Result<Value, ShellError> {
Self::try_into_value(self, Span::unknown())
}
}
impl<T> TryIntoValue for T