Skip to content

Commit 9a44ff5

Browse files
committed
deploy: f0e8d44
1 parent ab3da86 commit 9a44ff5

15 files changed

+18
-20
lines changed

dev/search-index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/src/uu_cp/cp.rs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@
23892389
.long(options::SPARSE)
23902390
.value_name(<span class="string">&quot;WHEN&quot;</span>)
23912391
.value_parser([<span class="string">&quot;never&quot;</span>, <span class="string">&quot;auto&quot;</span>, <span class="string">&quot;always&quot;</span>])
2392-
.help(<span class="string">&quot;NotImplemented: control creation of sparse files. See below&quot;</span>),
2392+
.help(<span class="string">&quot;control creation of sparse files. See below&quot;</span>),
23932393
)
23942394
<span class="comment">// TODO: implement the following args
23952395
</span>.arg(

dev/src/uu_df/df.rs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@
11231123
}
11241124
}
11251125

1126-
(!intersected_types.is_empty()).then(|| intersected_types)
1126+
(!intersected_types.is_empty()).then_some(intersected_types)
11271127
}
11281128
}
11291129

dev/src/uu_tee/tee.rs.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,6 @@
384384
<a href="#384" id="384">384</a>
385385
<a href="#385" id="385">385</a>
386386
<a href="#386" id="386">386</a>
387-
<a href="#387" id="387">387</a>
388387
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.
389388
// *
390389
// * (c) Aleksander Bielawski &lt;pabzdzdzwiagief@gmail.com&gt;
@@ -393,7 +392,6 @@
393392
// * file that was distributed with this source code.
394393

395394
</span><span class="kw">use </span>clap::{builder::PossibleValue, crate_version, Arg, ArgAction, Command};
396-
<span class="kw">use </span>retain_mut::RetainMut;
397395
<span class="kw">use </span>std::fs::OpenOptions;
398396
<span class="kw">use </span>std::io::{copy, sink, stdin, stdout, Error, ErrorKind, Read, <span class="prelude-ty">Result</span>, Write};
399397
<span class="kw">use </span>std::path::PathBuf;
@@ -688,7 +686,7 @@
688686
<span class="kw">let </span><span class="kw-2">mut </span>aborted = <span class="prelude-val">None</span>;
689687
<span class="kw">let </span>mode = <span class="self">self</span>.output_error_mode.clone();
690688
<span class="kw">let </span><span class="kw-2">mut </span>errors = <span class="number">0</span>;
691-
RetainMut::retain_mut(<span class="kw-2">&amp;mut </span><span class="self">self</span>.writers, |writer| {
689+
<span class="self">self</span>.writers.retain_mut(|writer| {
692690
<span class="kw">let </span>result = writer.write_all(buf);
693691
<span class="kw">match </span>result {
694692
<span class="prelude-val">Err</span>(f) =&gt; {
@@ -719,7 +717,7 @@
719717
<span class="kw">let </span><span class="kw-2">mut </span>aborted = <span class="prelude-val">None</span>;
720718
<span class="kw">let </span>mode = <span class="self">self</span>.output_error_mode.clone();
721719
<span class="kw">let </span><span class="kw-2">mut </span>errors = <span class="number">0</span>;
722-
RetainMut::retain_mut(<span class="kw-2">&amp;mut </span><span class="self">self</span>.writers, |writer| {
720+
<span class="self">self</span>.writers.retain_mut(|writer| {
723721
<span class="kw">let </span>result = writer.flush();
724722
<span class="kw">match </span>result {
725723
<span class="prelude-val">Err</span>(f) =&gt; {

dev/src/uucore/features/memo.rs.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -329,23 +329,23 @@
329329

330330
<span class="attr">#[test]
331331
</span><span class="kw">fn </span>test_sprintf_smoke() {
332-
<span class="macro">assert_eq!</span>(sprintf(<span class="string">&quot;&quot;</span>, <span class="kw-2">&amp;</span>[]).unwrap(), <span class="string">&quot;&quot;</span>.to_string())
332+
<span class="macro">assert_eq!</span>(sprintf(<span class="string">&quot;&quot;</span>, <span class="kw-2">&amp;</span>[]).unwrap(), <span class="string">&quot;&quot;</span>.to_string());
333333
}
334334

335335
<span class="attr">#[test]
336336
</span><span class="kw">fn </span>test_sprintf_no_args() {
337337
<span class="macro">assert_eq!</span>(
338338
sprintf(<span class="string">&quot;hello world&quot;</span>, <span class="kw-2">&amp;</span>[]).unwrap(),
339339
<span class="string">&quot;hello world&quot;</span>.to_string()
340-
)
340+
);
341341
}
342342

343343
<span class="attr">#[test]
344344
</span><span class="kw">fn </span>test_sprintf_string() {
345345
<span class="macro">assert_eq!</span>(
346346
sprintf(<span class="string">&quot;hello %s&quot;</span>, <span class="kw-2">&amp;</span>[<span class="string">&quot;world&quot;</span>.to_string()]).unwrap(),
347347
<span class="string">&quot;hello world&quot;</span>.to_string()
348-
)
348+
);
349349
}
350350
}
351351
</code></pre></div>

dev/src/uucore/mods/error.rs.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@
15471547
.map_err_context(|| String::from(<span class="string">&quot;test&quot;</span>))
15481548
.unwrap_err()
15491549
.to_string()
1550-
)
1550+
);
15511551
}
15521552
}
15531553
</code></pre></div>

0 commit comments

Comments
 (0)