mirror of
https://github.com/nushell/nushell.git
synced 2025-05-30 22:57:07 +02:00
Fix #15571: cargo fmt
This commit is contained in:
parent
8e7196041f
commit
2e244b9d7c
@ -42,7 +42,10 @@ impl Command for MetadataAccess {
|
||||
// `ClosureEvalOnce` is not used as it uses `Stack::captures_to_stack` rather than
|
||||
// `Stack::captures_to_stack_preserve_out_dest`. This command shouldn't collect streams
|
||||
let mut callee_stack = caller_stack.captures_to_stack_preserve_out_dest(closure.captures);
|
||||
let metadata_record = Value::record(build_metadata_record(input.metadata().as_ref(), call.head), call.head);
|
||||
let metadata_record = Value::record(
|
||||
build_metadata_record(input.metadata().as_ref(), call.head),
|
||||
call.head,
|
||||
);
|
||||
|
||||
if let Some(var_id) = block.signature.get_positional(0).and_then(|var| var.var_id) {
|
||||
callee_stack.add_var(var_id, metadata_record)
|
||||
|
@ -28,7 +28,6 @@ pub fn extend_record_with_metadata(
|
||||
};
|
||||
|
||||
record
|
||||
|
||||
}
|
||||
|
||||
pub fn build_metadata_record(metadata: Option<&PipelineMetadata>, head: Span) -> Record {
|
||||
|
Loading…
x
Reference in New Issue
Block a user