1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-22 12:18:20 +02:00

removed one internal_span

This commit is contained in:
Loïc Riegel 2025-04-10 01:02:28 +02:00
parent 0215f304cd
commit 8572c7914a

View File

@ -292,11 +292,7 @@ fn action(input: &Value, args: &Arguments, head: Span) -> Value {
return input.clone(); return input.clone();
} }
if let Value::Record { if let Value::Record { val: record, .. } = input {
val: record,
internal_span,
} = input
{
if let Some(tz) = timezone { if let Some(tz) = timezone {
return Value::error( return Value::error(
ShellError::IncompatibleParameters { ShellError::IncompatibleParameters {
@ -321,7 +317,7 @@ fn action(input: &Value, args: &Arguments, head: Span) -> Value {
); );
} }
return merge_record(record, head, *internal_span); return merge_record(record, head, input.span());
} }
// Let's try dtparse first // Let's try dtparse first