Skip to content

Commit 0007b06

Browse files
committed
deploy: c249eba
1 parent 3082e86 commit 0007b06

File tree

5 files changed

+43
-15
lines changed

5 files changed

+43
-15
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="./vdir/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="./dir/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="./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">
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">
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="vdir" 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="dir" 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: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,20 @@
773773
<span id="768">768</span>
774774
<span id="769">769</span>
775775
<span id="770">770</span>
776+
<span id="771">771</span>
777+
<span id="772">772</span>
778+
<span id="773">773</span>
779+
<span id="774">774</span>
780+
<span id="775">775</span>
781+
<span id="776">776</span>
782+
<span id="777">777</span>
783+
<span id="778">778</span>
784+
<span id="779">779</span>
785+
<span id="780">780</span>
786+
<span id="781">781</span>
787+
<span id="782">782</span>
788+
<span id="783">783</span>
789+
<span id="784">784</span>
776790
</pre><pre class="rust"><code><span class="comment">// This file is part of the uutils coreutils package.</span>
777791
<span class="comment">//</span>
778792
<span class="comment">// (c) Fangxu Hu &lt;framlog@gmail.com&gt;</span>
@@ -1067,7 +1081,7 @@
10671081
}
10681082

10691083
<span class="doccomment">/// For each path, get the filesystem that contains that path.</span>
1070-
<span class="kw">fn</span> <span class="ident">get_named_filesystems</span><span class="op">&lt;</span><span class="ident">P</span><span class="op">&gt;</span>(<span class="ident">paths</span>: <span class="kw-2">&amp;</span>[<span class="ident">P</span>]) -&gt; <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Filesystem</span><span class="op">&gt;</span>
1084+
<span class="kw">fn</span> <span class="ident">get_named_filesystems</span><span class="op">&lt;</span><span class="ident">P</span><span class="op">&gt;</span>(<span class="ident">paths</span>: <span class="kw-2">&amp;</span>[<span class="ident">P</span>], <span class="ident">opt</span>: <span class="kw-2">&amp;</span><span class="ident">Options</span>) -&gt; <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Filesystem</span><span class="op">&gt;</span>
10711085
<span class="kw">where</span>
10721086
<span class="ident">P</span>: <span class="ident">AsRef</span><span class="op">&lt;</span><span class="ident">Path</span><span class="op">&gt;</span>,
10731087
{
@@ -1077,21 +1091,35 @@
10771091
<span class="comment">// considered. The &quot;lofs&quot; filesystem is a loopback</span>
10781092
<span class="comment">// filesystem present on Solaris and FreeBSD systems. It</span>
10791093
<span class="comment">// is similar to a symbolic link.</span>
1080-
<span class="kw">let</span> <span class="ident">mounts</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">MountInfo</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">read_fs_list</span>()
1094+
<span class="kw">let</span> <span class="ident">mounts</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">MountInfo</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">filter_mount_list</span>(<span class="ident">read_fs_list</span>(), <span class="ident">opt</span>)
10811095
.<span class="ident">into_iter</span>()
10821096
.<span class="ident">filter</span>(<span class="op">|</span><span class="ident">mi</span><span class="op">|</span> <span class="ident">mi</span>.<span class="ident">fs_type</span> <span class="op">!</span><span class="op">=</span> <span class="string">&quot;lofs&quot;</span> <span class="op">&amp;&amp;</span> <span class="op">!</span><span class="ident">mi</span>.<span class="ident">dummy</span>)
10831097
.<span class="ident">collect</span>();
10841098

1099+
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">result</span> <span class="op">=</span> <span class="macro">vec!</span>[];
1100+
1101+
<span class="comment">// this happens if the file system type doesn&#39;t exist</span>
1102+
<span class="kw">if</span> <span class="ident">mounts</span>.<span class="ident">is_empty</span>() {
1103+
<span class="macro">show!</span>(<span class="ident">USimpleError::new</span>(<span class="number">1</span>, <span class="string">&quot;no file systems processed&quot;</span>));
1104+
<span class="kw">return</span> <span class="ident">result</span>;
1105+
}
1106+
10851107
<span class="comment">// Convert each path into a `Filesystem`, which contains</span>
10861108
<span class="comment">// both the mount information and usage information.</span>
1087-
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">result</span> <span class="op">=</span> <span class="macro">vec!</span>[];
10881109
<span class="kw">for</span> <span class="ident">path</span> <span class="kw">in</span> <span class="ident">paths</span> {
10891110
<span class="kw">match</span> <span class="ident">Filesystem::from_path</span>(<span class="kw-2">&amp;</span><span class="ident">mounts</span>, <span class="ident">path</span>) {
10901111
<span class="prelude-val">Some</span>(<span class="ident">fs</span>) =&gt; <span class="ident">result</span>.<span class="ident">push</span>(<span class="ident">fs</span>),
1091-
<span class="prelude-val">None</span> =&gt; <span class="macro">show!</span>(<span class="ident">USimpleError::new</span>(
1092-
<span class="number">1</span>,
1093-
<span class="macro">format!</span>(<span class="string">&quot;{}: No such file or directory&quot;</span>, <span class="ident">path</span>.<span class="ident">as_ref</span>().<span class="ident">display</span>())
1094-
)),
1112+
<span class="prelude-val">None</span> =&gt; {
1113+
<span class="comment">// this happens if specified file system type != file system type of the file</span>
1114+
<span class="kw">if</span> <span class="ident">path</span>.<span class="ident">as_ref</span>().<span class="ident">exists</span>() {
1115+
<span class="macro">show!</span>(<span class="ident">USimpleError::new</span>(<span class="number">1</span>, <span class="string">&quot;no file systems processed&quot;</span>));
1116+
} <span class="kw">else</span> {
1117+
<span class="macro">show!</span>(<span class="ident">USimpleError::new</span>(
1118+
<span class="number">1</span>,
1119+
<span class="macro">format!</span>(<span class="string">&quot;{}: No such file or directory&quot;</span>, <span class="ident">path</span>.<span class="ident">as_ref</span>().<span class="ident">display</span>())
1120+
));
1121+
}
1122+
}
10951123
}
10961124
}
10971125
<span class="ident">result</span>
@@ -1145,7 +1173,7 @@
11451173
}
11461174
<span class="prelude-val">Some</span>(<span class="ident">paths</span>) =&gt; {
11471175
<span class="kw">let</span> <span class="ident">paths</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="kw-2">&amp;</span><span class="ident">str</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">paths</span>.<span class="ident">collect</span>();
1148-
<span class="kw">let</span> <span class="ident">filesystems</span> <span class="op">=</span> <span class="ident">get_named_filesystems</span>(<span class="kw-2">&amp;</span><span class="ident">paths</span>);
1176+
<span class="kw">let</span> <span class="ident">filesystems</span> <span class="op">=</span> <span class="ident">get_named_filesystems</span>(<span class="kw-2">&amp;</span><span class="ident">paths</span>, <span class="kw-2">&amp;</span><span class="ident">opt</span>);
11491177

11501178
<span class="comment">// This can happen if paths are given as command-line arguments</span>
11511179
<span class="comment">// but none of the paths exist.</span>

0 commit comments

Comments
 (0)