Skip to content

Commit b045c64

Browse files
committed
deploy: c249eba
1 parent 82c2f9a commit b045c64

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

dev/src/uu_mktemp/mktemp.rs.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@
396396
<span id="391">391</span>
397397
<span id="392">392</span>
398398
<span id="393">393</span>
399+
<span id="394">394</span>
400+
<span id="395">395</span>
401+
<span id="396">396</span>
402+
<span id="397">397</span>
399403
</pre><pre class="rust"><code><span class="comment">// This file is part of the uutils coreutils package.</span>
400404
<span class="comment">//</span>
401405
<span class="comment">// (c) Sunrin SHIMURA</span>
@@ -665,7 +669,11 @@
665669
<span class="kw">let</span> <span class="ident">rand</span> <span class="op">=</span> <span class="ident">right</span> <span class="op">-</span> <span class="ident">left</span>;
666670

667671
<span class="kw">if</span> <span class="ident">rand</span> <span class="op">&lt;</span> <span class="number">3</span> {
668-
<span class="kw">return</span> <span class="prelude-val">Err</span>(<span class="ident">MkTempError::TooFewXs</span>(<span class="ident">temp</span>.<span class="ident">into</span>()));
672+
<span class="kw">let</span> <span class="ident">s</span> <span class="op">=</span> <span class="kw">match</span> <span class="ident">suffix</span> {
673+
<span class="prelude-val">None</span> =&gt; <span class="ident">temp</span>.<span class="ident">into</span>(),
674+
<span class="prelude-val">Some</span>(<span class="ident">s</span>) =&gt; <span class="macro">format!</span>(<span class="string">&quot;{}{}&quot;</span>, <span class="ident">temp</span>, <span class="ident">s</span>),
675+
};
676+
<span class="kw">return</span> <span class="prelude-val">Err</span>(<span class="ident">MkTempError::TooFewXs</span>(<span class="ident">s</span>));
669677
}
670678

671679
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">suf</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">temp</span>[<span class="ident">right</span>..];

dev/uu_mktemp/fn.dry_exec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
</nav>
55
<nav class="sidebar"><a class="sidebar-logo" href="../uu_mktemp/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div>
66
</a><div class="sidebar-elems"><h2 class="location"><a href="index.html">In uu_mktemp</a></h2><div id="sidebar-vars" data-name="dry_exec" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../uu_mktemp/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
7-
<h1 class="fqn"><span class="in-band">Function <a href="index.html">uu_mktemp</a>::<wbr><a class="fn" href="#">dry_exec</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/uu_mktemp/mktemp.rs.html#294-316">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn dry_exec(<br>&nbsp;&nbsp;&nbsp;&nbsp;tmpdir: <a class="struct" href="https://doc.rust-lang.org/1.61.0/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;prefix: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;rand: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;suffix: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -&gt; <a class="type" href="../uucore/mods/error/type.UResult.html" title="type uucore::mods::error::UResult">UResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.unit.html">()</a>&gt;</code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="uu_mktemp" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
7+
<h1 class="fqn"><span class="in-band">Function <a href="index.html">uu_mktemp</a>::<wbr><a class="fn" href="#">dry_exec</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/uu_mktemp/mktemp.rs.html#298-320">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust fn"><code>pub fn dry_exec(<br>&nbsp;&nbsp;&nbsp;&nbsp;tmpdir: <a class="struct" href="https://doc.rust-lang.org/1.61.0/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;prefix: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;rand: <a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.usize.html">usize</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;suffix: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.str.html">str</a><br>) -&gt; <a class="type" href="../uucore/mods/error/type.UResult.html" title="type uucore::mods::error::UResult">UResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.61.0/std/primitive.unit.html">()</a>&gt;</code></pre></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="uu_mktemp" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
88
</body></html>

dev/uu_mktemp/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
</nav>
55
<nav class="sidebar"><a class="sidebar-logo" href="../uu_mktemp/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div>
66
</a><h2 class="location"><a href="#">Crate uu_mktemp</a></h2><div class="sidebar-elems"><div class="block"><ul><li class="version">Version 0.0.14</li><li><a id="all-types" href="all.html">All Items</a></li></div></ul><section><div class="block"><ul><li><a href="#functions">Functions</a></li></ul></div></section><div id="sidebar-vars" data-name="uu_mktemp" data-ty="mod" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../uu_mktemp/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
7-
<h1 class="fqn"><span class="in-band">Crate <a class="mod" href="#">uu_mktemp</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/uu_mktemp/mktemp.rs.html#11-393">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2>
7+
<h1 class="fqn"><span class="in-band">Crate <a class="mod" href="#">uu_mktemp</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/uu_mktemp/mktemp.rs.html#11-397">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2>
88
<div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.dry_exec.html" title="uu_mktemp::dry_exec fn">dry_exec</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.uu_app.html" title="uu_mktemp::uu_app fn">uu_app</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="fn" href="fn.uumain.html" title="uu_mktemp::uumain fn">uumain</a></div><div class="item-right docblock-short"></div></div></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="uu_mktemp" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.61.0 (fe5b13d68 2022-05-18)" ></div>
99
</body></html>

0 commit comments

Comments
 (0)