Skip to content

Commit

Permalink
Remove unnecessary clones when piping commands in hull (#1089)
Browse files Browse the repository at this point in the history
* 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 <klim@tsoutsman.com> ffb5e8b
  • Loading branch information
tsoutsman and jklott committed Jan 4, 2024
1 parent 9c9f08f commit b649fba
Show file tree
Hide file tree
Showing 23 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion doc/implementors/core/default/trait.Default.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion doc/implementors/core/fmt/trait.Debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion doc/implementors/core/ops/drop/trait.Drop.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion doc/ixgbe/virtual_function/fn.create_virtual_nic.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ip_addresses: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;[<a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.array.html">4</a>]&gt;,
default_rx_queue: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>,
default_tx_queue: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../../virtual_nic/struct.VirtualNic.html" title="struct virtual_nic::VirtualNic">VirtualNic</a>&lt;IxgbeRxQueueRegisters, AdvancedRxDescriptor, IxgbeTxQueueRegisters, AdvancedTxDescriptor&gt;, &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.str.html">str</a>&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a virtual NIC from the ixgbe device.</p>
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;VirtualNic&lt;IxgbeRxQueueRegisters, AdvancedRxDescriptor, IxgbeTxQueueRegisters, AdvancedTxDescriptor&gt;, &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.str.html">str</a>&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a virtual NIC from the ixgbe device.</p>
<h2 id="arguments"><a href="#arguments">Arguments</a></h2>
<ul>
<li><code>nic_id</code>: the ixgbe NIC we will take receive and transmit queue from.</li>
Expand Down
Loading

0 comments on commit b649fba

Please sign in to comment.