From b649fba78a7e8468ada7e12d0604c3e4a5bec0cd Mon Sep 17 00:00:00 2001 From: tsoutsman Date: Thu, 4 Jan 2024 12:38:59 +0000 Subject: [PATCH] Remove unnecessary clones when piping commands in `hull` (#1089) * Commands can take ownership of `previous_output` as they then overwrite it anyway. * The final command can take ownership of all streams. --------- Co-authored-by: Poxxy <41162160+Poxxy@users.noreply.github.com> Co-authored-by: Klim Tsoutsman ffb5e8b360fff655767b5ed13e6122db9a583857 --- .../core/default/trait.Default.js | 2 +- doc/implementors/core/fmt/trait.Debug.js | 2 +- doc/implementors/core/ops/drop/trait.Drop.js | 2 +- .../fn.create_virtual_nic.html | 2 +- doc/mod_mgmt/fn.crate_name_from_path.html | 2 +- .../fn.get_containing_crate_name.html | 2 +- .../fn.get_containing_crate_name_ranges.html | 2 +- doc/mod_mgmt/fn.is_valid_crate_name_char.html | 2 +- .../fn.replace_containing_crate_name.html | 2 +- doc/page_allocator/enum.AllocationError.html | 8 ++++---- .../enum.AllocationRequest.html | 8 ++++---- doc/page_allocator/fn.allocate_pages.html | 2 +- doc/page_allocator/fn.allocate_pages_at.html | 4 ++-- .../fn.allocate_pages_by_bytes.html | 2 +- .../fn.allocate_pages_by_bytes_at.html | 4 ++-- .../fn.allocate_pages_by_bytes_deferred.html | 2 +- .../fn.allocate_pages_by_bytes_in_range.html | 4 ++-- .../fn.allocate_pages_deferred.html | 2 +- .../fn.allocate_pages_in_range.html | 4 ++-- doc/page_allocator/fn.init.html | 2 +- doc/page_allocator/struct.AllocatedPages.html | 20 +++++++++---------- doc/stdio/struct.KeyEventQueueReader.html | 2 +- doc/stdio/struct.KeyEventQueueWriter.html | 2 +- 23 files changed, 42 insertions(+), 42 deletions(-) diff --git a/doc/implementors/core/default/trait.Default.js b/doc/implementors/core/default/trait.Default.js index a9cff57205..ecd0cc4935 100644 --- a/doc/implementors/core/default/trait.Default.js +++ b/doc/implementors/core/default/trait.Default.js @@ -9,7 +9,7 @@ "libterm":[["impl Default for Cursor"]], "memory_structs":[["impl<P: PageSize> Default for FrameRange<P>"],["impl<P: PageSize> Default for PageRange<P>"],["impl Default for VirtualAddress"],["impl Default for PhysicalAddress"]], "mlx_ethernet":[["impl Default for WorkQueueEntrySend"],["impl Default for CompletionQueueDoorbellRecord"],["impl Default for CommandQueueEntry"],["impl Default for WorkQueueEntryReceive"],["impl Default for DoorbellRecord"],["impl Default for CompletionQueueEntry"],["impl Default for EventQueueEntry"]], -"page_allocator":[["impl<P: PageSize> Default for AllocatedPages<P>"]], +"page_allocator":[["impl<P: PageSize> Default for AllocatedPages<P>"]], "path":[["impl Default for PathBuf"]], "pte_flags":[["impl Default for PteFlagsAarch64"],["impl Default for PteFlags"],["impl Default for PteFlagsX86_64"]], "slabmalloc":[["impl<'a> Default for ZoneAllocator<'a>"],["impl<T> Default for Rawlink<T>"],["impl<'a> Default for ObjectPage8k<'a>"]], diff --git a/doc/implementors/core/fmt/trait.Debug.js b/doc/implementors/core/fmt/trait.Debug.js index 706ad174c1..d8d1a9bbd0 100644 --- a/doc/implementors/core/fmt/trait.Debug.js +++ b/doc/implementors/core/fmt/trait.Debug.js @@ -44,7 +44,7 @@ "mouse_data":[["impl Debug for MouseButtons"],["impl Debug for MouseEvent"],["impl Debug for MouseMovementRelative"]], "multicore_bringup":[["impl Debug for GraphicInfo"]], "no_drop":[["impl<T: Debug> Debug for NoDrop<T>"]], -"page_allocator":[["impl<P: PageSize> Debug for AllocatedPages<P>"],["impl Debug for AllocationError"]], +"page_allocator":[["impl<P: PageSize> Debug for AllocatedPages<P>"],["impl Debug for AllocationError"]], "page_attribute_table":[["impl Debug for MemoryCachingType"],["impl Debug for PatNotSupported"]], "path":[["impl<'a> Debug for Component<'a>"],["impl<'a> Debug for Components<'a>"],["impl Debug for Path"],["impl Debug for PathBuf"]], "pci":[["impl Debug for PciDevice"],["impl Debug for PciBus"],["impl Debug for PciLocation"]], diff --git a/doc/implementors/core/ops/drop/trait.Drop.js b/doc/implementors/core/ops/drop/trait.Drop.js index 43484b2f01..7f77c7badc 100644 --- a/doc/implementors/core/ops/drop/trait.Drop.js +++ b/doc/implementors/core/ops/drop/trait.Drop.js @@ -8,7 +8,7 @@ "memory":[["impl Drop for MappedPages"]], "mod_mgmt":[["impl Drop for AppCrateRef"]], "nic_buffers":[["impl Drop for ReceiveBuffer"]], -"page_allocator":[["impl<P: PageSize> Drop for AllocatedPages<P>"],["impl<'list> Drop for DeferredAllocAction<'list>"]], +"page_allocator":[["impl<P: PageSize> Drop for AllocatedPages<P>"],["impl<'list> Drop for DeferredAllocAction<'list>"]], "pmu_x86":[["impl Drop for Counter"]], "preemption":[["impl Drop for PreemptionGuard"]], "serial_port_basic":[["impl Drop for SerialPort"]], diff --git a/doc/ixgbe/virtual_function/fn.create_virtual_nic.html b/doc/ixgbe/virtual_function/fn.create_virtual_nic.html index d98e4d6230..948ab14a62 100644 --- a/doc/ixgbe/virtual_function/fn.create_virtual_nic.html +++ b/doc/ixgbe/virtual_function/fn.create_virtual_nic.html @@ -3,7 +3,7 @@ ip_addresses: Vec<[u8; 4]>, default_rx_queue: usize, default_tx_queue: usize -) -> Result<VirtualNic<IxgbeRxQueueRegisters, AdvancedRxDescriptor, IxgbeTxQueueRegisters, AdvancedTxDescriptor>, &'static str>
Expand description

Create a virtual NIC from the ixgbe device.

+) -> Result<VirtualNic<IxgbeRxQueueRegisters, AdvancedRxDescriptor, IxgbeTxQueueRegisters, AdvancedTxDescriptor>, &'static str>
Expand description

Create a virtual NIC from the ixgbe device.

Arguments