Skip to content

Commit 8789688

Browse files
committed
deploy: c249eba
1 parent 97e783f commit 8789688

File tree

6 files changed

+34
-12
lines changed

6 files changed

+34
-12
lines changed

dev/settings.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Settings of Rustdoc"><meta name="keywords" content="rust, rustlang, rust-lang"><title>Rustdoc settings</title><link rel="preload" as="font" type="font/woff2" crossorigin href="./SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="./SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="./normalize.css"><link rel="stylesheet" type="text/css" href="./rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="./ayu.css" disabled><link rel="stylesheet" type="text/css" href="./dark.css" disabled><link rel="stylesheet" type="text/css" href="./light.css" id="themeStyle"><script id="default-settings" ></script><script src="./storage.js"></script><script src="./crates.js"></script><script defer src="./main.js"></script>
2-
<noscript><link rel="stylesheet" href="./noscript.css"></noscript><link rel="alternate icon" type="image/png" href="./favicon-16x16.png"><link rel="alternate icon" type="image/png" href="./favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="./favicon.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="./dir/index.html"><div class="logo-container"><img class="rust-logo" src="./rust-logo.svg" alt="logo"></div>
2+
<noscript><link rel="stylesheet" href="./noscript.css"></noscript><link rel="alternate icon" type="image/png" href="./favicon-16x16.png"><link rel="alternate icon" type="image/png" href="./favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="./favicon.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="./vdir/index.html"><div class="logo-container"><img class="rust-logo" src="./rust-logo.svg" alt="logo"></div>
33
</a><h2 class="location"></h2>
44
</nav>
5-
<nav class="sidebar"><a class="sidebar-logo" href="./dir/index.html"><div class="logo-container"><img class="rust-logo" src="./rust-logo.svg" alt="logo"></div>
6-
</a><h2 class="location">Settings</h2><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="./dir/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">
5+
<nav class="sidebar"><a class="sidebar-logo" href="./vdir/index.html"><div class="logo-container"><img class="rust-logo" src="./rust-logo.svg" alt="logo"></div>
6+
</a><h2 class="location">Settings</h2><div class="sidebar-elems"></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="./vdir/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">
77
<h1 class="fqn"><span class="in-band">Rustdoc settings</span></h1><span class="out-of-band"><a id="back" href="javascript:void(0)">Back</a></span></div><div class="settings"><div class="setting-line"><label class="toggle"><input type="checkbox" id="use-system-theme" checked><span class="slider"></span></label><div>Use system theme</div></div><div class="setting-line"><div class="radio-line" id="theme"><span class="setting-name">Theme</span><div class="choices"><label for="theme-light" class="choice">
88
<input type="radio" name="theme" id="theme-light" value="light" checked>light</label><label for="theme-dark" class="choice">
99
<input type="radio" name="theme" id="theme-dark" value="dark" >dark</label><label for="theme-ayu" class="choice">
@@ -13,5 +13,5 @@ <h1 class="fqn"><span class="in-band">Rustdoc settings</span></h1><span class="o
1313
<input type="radio" name="preferred-light-theme" id="preferred-light-theme-ayu" value="ayu" >ayu</label></div></div></div><div class="setting-line"><div class="radio-line" id="preferred-dark-theme"><span class="setting-name">Preferred dark theme</span><div class="choices"><label for="preferred-dark-theme-light" class="choice">
1414
<input type="radio" name="preferred-dark-theme" id="preferred-dark-theme-light" value="light" >light</label><label for="preferred-dark-theme-dark" class="choice">
1515
<input type="radio" name="preferred-dark-theme" id="preferred-dark-theme-dark" value="dark" checked>dark</label><label for="preferred-dark-theme-ayu" class="choice">
16-
<input type="radio" name="preferred-dark-theme" id="preferred-dark-theme-ayu" value="ayu" >ayu</label></div></div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="auto-hide-large-items" checked><span class="slider"></span></label><div>Auto-hide item contents for large items.</div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="auto-hide-method-docs" ><span class="slider"></span></label><div>Auto-hide item methods' documentation</div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="auto-hide-trait-implementations" ><span class="slider"></span></label><div>Auto-hide trait implementation documentation</div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="go-to-only-result" ><span class="slider"></span></label><div>Directly go to item in search if there is only one result</div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="line-numbers" ><span class="slider"></span></label><div>Show line numbers on code examples</div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="disable-shortcuts" ><span class="slider"></span></label><div>Disable keyboard shortcuts</div></div></div><link rel="stylesheet" href="./settings.css"><script src="./settings.js"></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="./" data-current-crate="dir" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.60.0 (7737e0b5c 2022-04-04)" ></div>
16+
<input type="radio" name="preferred-dark-theme" id="preferred-dark-theme-ayu" value="ayu" >ayu</label></div></div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="auto-hide-large-items" checked><span class="slider"></span></label><div>Auto-hide item contents for large items.</div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="auto-hide-method-docs" ><span class="slider"></span></label><div>Auto-hide item methods' documentation</div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="auto-hide-trait-implementations" ><span class="slider"></span></label><div>Auto-hide trait implementation documentation</div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="go-to-only-result" ><span class="slider"></span></label><div>Directly go to item in search if there is only one result</div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="line-numbers" ><span class="slider"></span></label><div>Show line numbers on code examples</div></div><div class="setting-line"><label class="toggle"><input type="checkbox" id="disable-shortcuts" ><span class="slider"></span></label><div>Disable keyboard shortcuts</div></div></div><link rel="stylesheet" href="./settings.css"><script src="./settings.js"></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="./" data-current-crate="vdir" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.60.0 (7737e0b5c 2022-04-04)" ></div>
1717
</body></html>

dev/src/uu_df/df.rs.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,7 @@
778778
<span id="773">773</span>
779779
<span id="774">774</span>
780780
<span id="775">775</span>
781+
<span id="776">776</span>
781782
</pre><pre class="rust"><code><span class="comment">// This file is part of the uutils coreutils package.</span>
782783
<span class="comment">//</span>
783784
<span class="comment">// (c) Fangxu Hu &lt;framlog@gmail.com&gt;</span>
@@ -1067,6 +1068,7 @@
10671068
<span class="ident">mounts</span>
10681069
.<span class="ident">into_iter</span>()
10691070
.<span class="ident">filter_map</span>(<span class="op">|</span><span class="ident">m</span><span class="op">|</span> <span class="ident">Filesystem::new</span>(<span class="ident">m</span>, <span class="prelude-val">None</span>))
1071+
.<span class="ident">filter</span>(<span class="op">|</span><span class="ident">fs</span><span class="op">|</span> <span class="ident">opt</span>.<span class="ident">show_all_fs</span> <span class="op">|</span><span class="op">|</span> <span class="ident">fs</span>.<span class="ident">usage</span>.<span class="ident">blocks</span> <span class="op">&gt;</span> <span class="number">0</span>)
10701072
.<span class="ident">collect</span>()
10711073
}
10721074

@@ -1142,7 +1144,7 @@
11421144
<span class="kw">let</span> <span class="ident">filesystems</span> <span class="op">=</span> <span class="ident">get_all_filesystems</span>(<span class="kw-2">&amp;</span><span class="ident">opt</span>);
11431145

11441146
<span class="kw">if</span> <span class="ident">filesystems</span>.<span class="ident">is_empty</span>() {
1145-
<span class="kw">return</span> <span class="prelude-val">Err</span>(<span class="ident">USimpleError::new</span>(<span class="number">1</span>, <span class="string">&quot;No file systems processed&quot;</span>));
1147+
<span class="kw">return</span> <span class="prelude-val">Err</span>(<span class="ident">USimpleError::new</span>(<span class="number">1</span>, <span class="string">&quot;no file systems processed&quot;</span>));
11461148
}
11471149

11481150
<span class="ident">filesystems</span>

dev/src/uu_df/table.rs.html

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,16 @@
804804
<span id="799">799</span>
805805
<span id="800">800</span>
806806
<span id="801">801</span>
807+
<span id="802">802</span>
808+
<span id="803">803</span>
809+
<span id="804">804</span>
810+
<span id="805">805</span>
811+
<span id="806">806</span>
812+
<span id="807">807</span>
813+
<span id="808">808</span>
814+
<span id="809">809</span>
815+
<span id="810">810</span>
816+
<span id="811">811</span>
807817
</pre><pre class="rust"><code><span class="comment">// * This file is part of the uutils coreutils package.</span>
808818
<span class="comment">// *</span>
809819
<span class="comment">// * For the full copyright and license information, please view the LICENSE</span>
@@ -814,6 +824,7 @@
814824
<span class="doccomment">//! A table ([`Table`]) comprises a header row ([`Header`]) and a</span>
815825
<span class="doccomment">//! collection of data rows ([`Row`]), one per filesystem.</span>
816826
<span class="kw">use</span> <span class="ident">number_prefix::NumberPrefix</span>;
827+
<span class="kw">use</span> <span class="ident">unicode_width::UnicodeWidthStr</span>;
817828

818829
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::columns</span>::{<span class="ident">Alignment</span>, <span class="ident">Column</span>};
819830
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::filesystem::Filesystem</span>;
@@ -1168,8 +1179,8 @@
11681179
<span class="ident">total</span> <span class="op">+</span><span class="op">=</span> <span class="ident">row</span>;
11691180

11701181
<span class="kw">for</span> (<span class="ident">i</span>, <span class="ident">value</span>) <span class="kw">in</span> <span class="ident">values</span>.<span class="ident">iter</span>().<span class="ident">enumerate</span>() {
1171-
<span class="kw">if</span> <span class="ident">value</span>.<span class="ident">len</span>() <span class="op">&gt;</span> <span class="ident">widths</span>[<span class="ident">i</span>] {
1172-
<span class="ident">widths</span>[<span class="ident">i</span>] <span class="op">=</span> <span class="ident">value</span>.<span class="ident">len</span>();
1182+
<span class="kw">if</span> <span class="ident">UnicodeWidthStr::width</span>(<span class="ident">value</span>.<span class="ident">as_str</span>()) <span class="op">&gt;</span> <span class="ident">widths</span>[<span class="ident">i</span>] {
1183+
<span class="ident">widths</span>[<span class="ident">i</span>] <span class="op">=</span> <span class="ident">UnicodeWidthStr::width</span>(<span class="ident">value</span>.<span class="ident">as_str</span>());
11731184
}
11741185
}
11751186

@@ -1206,12 +1217,21 @@
12061217
<span class="kw">while</span> <span class="kw">let</span> <span class="prelude-val">Some</span>(<span class="ident">row</span>) <span class="op">=</span> <span class="ident">row_iter</span>.<span class="ident">next</span>() {
12071218
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">col_iter</span> <span class="op">=</span> <span class="ident">row</span>.<span class="ident">iter</span>().<span class="ident">enumerate</span>().<span class="ident">peekable</span>();
12081219
<span class="kw">while</span> <span class="kw">let</span> <span class="prelude-val">Some</span>((<span class="ident">i</span>, <span class="ident">elem</span>)) <span class="op">=</span> <span class="ident">col_iter</span>.<span class="ident">next</span>() {
1220+
<span class="kw">let</span> <span class="ident">is_last_col</span> <span class="op">=</span> <span class="ident">col_iter</span>.<span class="ident">peek</span>().<span class="ident">is_none</span>();
1221+
12091222
<span class="kw">match</span> <span class="self">self</span>.<span class="ident">alignments</span>[<span class="ident">i</span>] {
1210-
<span class="ident">Alignment::Left</span> =&gt; <span class="macro">write!</span>(<span class="ident">f</span>, <span class="string">&quot;{:&lt;width$}&quot;</span>, <span class="ident">elem</span>, <span class="ident">width</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">widths</span>[<span class="ident">i</span>])<span class="question-mark">?</span>,
1223+
<span class="ident">Alignment::Left</span> =&gt; {
1224+
<span class="kw">if</span> <span class="ident">is_last_col</span> {
1225+
<span class="comment">// no trailing spaces in last column</span>
1226+
<span class="macro">write!</span>(<span class="ident">f</span>, <span class="string">&quot;{}&quot;</span>, <span class="ident">elem</span>)<span class="question-mark">?</span>;
1227+
} <span class="kw">else</span> {
1228+
<span class="macro">write!</span>(<span class="ident">f</span>, <span class="string">&quot;{:&lt;width$}&quot;</span>, <span class="ident">elem</span>, <span class="ident">width</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">widths</span>[<span class="ident">i</span>])<span class="question-mark">?</span>;
1229+
}
1230+
}
12111231
<span class="ident">Alignment::Right</span> =&gt; <span class="macro">write!</span>(<span class="ident">f</span>, <span class="string">&quot;{:&gt;width$}&quot;</span>, <span class="ident">elem</span>, <span class="ident">width</span> <span class="op">=</span> <span class="self">self</span>.<span class="ident">widths</span>[<span class="ident">i</span>])<span class="question-mark">?</span>,
12121232
}
12131233

1214-
<span class="kw">if</span> <span class="ident">col_iter</span>.<span class="ident">peek</span>().<span class="ident">is_some</span>() {
1234+
<span class="kw">if</span> <span class="op">!</span><span class="ident">is_last_col</span> {
12151235
<span class="comment">// column separator</span>
12161236
<span class="macro">write!</span>(<span class="ident">f</span>, <span class="string">&quot; &quot;</span>)<span class="question-mark">?</span>;
12171237
}

0 commit comments

Comments
 (0)