Skip to content

Commit b3bf9ad

Browse files
committed
deploy: df006ba
1 parent eda6c1e commit b3bf9ad

File tree

7 files changed

+36
-60
lines changed

7 files changed

+36
-60
lines changed

database/postgres.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ <h2 id="aggregate-data"><a class="header" href="#aggregate-data">Aggregate data<
259259

260260
if nationality.is_some () &amp;&amp; count.is_some () {
261261

262-
let nation = Nation{
262+
let nation = Nation {
263263
nationality: nationality.unwrap(),
264264
count: count.unwrap(),
265-
};
265+
};
266266
println!("{} {}", nation.nationality, nation.count);
267267

268268
}

development_tools/versioning.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ <h2 id="check-if-given-version-is-pre-release"><a class="header" href="#check-if
232232

233233
Ok(())
234234
}</code></pre></pre>
235-
<p>[`</p>
236235
<h2 id="find-the-latest-version-satisfying-given-range"><a class="header" href="#find-the-latest-version-satisfying-given-range">Find the latest version satisfying given range</a></h2>
237236
<p><a href="https://docs.rs/semver/"><img src="https://badge-cache.kominick.com/crates/v/semver.svg?label=semver" alt="semver-badge" /></a> <a href="https://crates.io/categories/config"><img src="https://badge-cache.kominick.com/badge/config--x.svg?style=social" alt="cat-config-badge" /></a></p>
238237
<p>Given a list of version &amp;strs, finds the latest <a href="https://docs.rs/semver/*/semver/struct.Version.html"><code>semver::Version</code></a>.

encoding/csv.html

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -357,20 +357,14 @@ <h2 id="serialize-records-to-csv-using-serde"><a class="header" href="#serialize
357357
wtr.flush()?;
358358

359359
Ok(())
360-
}
361-
362-
# Transform CSV column
363-
364-
[![csv-badge]][csv] [![serde-badge]][serde] [![cat-encoding-badge]][cat-encoding]
365-
366-
Transform a CSV file containing a color name and a hex color into one with a
367-
color name and an rgb color. Utilizes the [csv] crate to read and write the
368-
csv file, and [serde] to deserialize and serialize the rows to and from bytes.
369-
370-
See [csv::Reader::deserialize], [serde::Deserialize], and [std::str::FromStr]
371-
372-
```rust,edition2018
373-
use anyhow::{Result, anyhow};
360+
}</code></pre></pre>
361+
<h2 id="transform-csv-column"><a class="header" href="#transform-csv-column">Transform CSV column</a></h2>
362+
<p><a href="https://docs.rs/csv/"><img src="https://badge-cache.kominick.com/crates/v/csv.svg?label=csv" alt="csv-badge" /></a> <a href="https://docs.rs/serde/"><img src="https://badge-cache.kominick.com/crates/v/serde.svg?label=serde" alt="serde-badge" /></a> <a href="https://crates.io/categories/encoding"><img src="https://badge-cache.kominick.com/badge/encoding--x.svg?style=social" alt="cat-encoding-badge" /></a></p>
363+
<p>Transform a CSV file containing a color name and a hex color into one with a
364+
color name and an rgb color. Utilizes the <a href="https://docs.rs/csv/">csv</a> crate to read and write the
365+
csv file, and <a href="https://docs.rs/serde/">serde</a> to deserialize and serialize the rows to and from bytes.</p>
366+
<p>See <a href="https://docs.rs/csv/*/csv/struct.Reader.html#method.deserialize">csv::Reader::deserialize</a>, <a href="https://docs.rs/serde/*/serde/trait.Deserialize.html">serde::Deserialize</a>, and <a href="https://doc.rust-lang.org/std/str/trait.FromStr.html">std::str::FromStr</a></p>
367+
<pre><pre class="playground"><code class="language-rust edition2018">use anyhow::{Result, anyhow};
374368
use csv::{Reader, Writer};
375369
use serde::{de, Deserialize, Deserializer};
376370
use std::str::FromStr;

file/dir.html

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -242,18 +242,13 @@ <h2 id="recursively-find-duplicate-file-names"><a class="header" href="#recursiv
242242
println!("{}", f_name);
243243
}
244244
}
245-
}
246-
247-
# Recursively find all files with given predicate
248-
249-
[![walkdir-badge]][walkdir] [![cat-filesystem-badge]][cat-filesystem]
250-
251-
Find JSON files modified within the last day in the current directory.
252-
Using [`follow_links`] ensures symbolic links are followed like they were
253-
normal directories and files.
254-
255-
```rust,edition2021
256-
use walkdir::WalkDir;
245+
}</code></pre></pre>
246+
<h2 id="recursively-find-all-files-with-given-predicate"><a class="header" href="#recursively-find-all-files-with-given-predicate">Recursively find all files with given predicate</a></h2>
247+
<p><a href="https://docs.rs/walkdir/"><img src="https://badge-cache.kominick.com/crates/v/walkdir.svg?label=walkdir" alt="walkdir-badge" /></a> <a href="https://crates.io/categories/filesystem"><img src="https://badge-cache.kominick.com/badge/filesystem--x.svg?style=social" alt="cat-filesystem-badge" /></a></p>
248+
<p>Find JSON files modified within the last day in the current directory.
249+
Using <a href="https://docs.rs/walkdir/*/walkdir/struct.WalkDir.html#method.follow_links"><code>follow_links</code></a> ensures symbolic links are followed like they were
250+
normal directories and files.</p>
251+
<pre><pre class="playground"><code class="language-rust edition2021">use walkdir::WalkDir;
257252
use anyhow::Result;
258253

259254
fn main() -&gt; Result&lt;()&gt; {

print.html

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,10 +2079,10 @@ <h2 id="aggregate-data"><a class="header" href="#aggregate-data">Aggregate data<
20792079

20802080
if nationality.is_some () &amp;&amp; count.is_some () {
20812081

2082-
let nation = Nation{
2082+
let nation = Nation {
20832083
nationality: nationality.unwrap(),
20842084
count: count.unwrap(),
2085-
};
2085+
};
20862086
println!("{} {}", nation.nationality, nation.count);
20872087

20882088
}
@@ -2674,7 +2674,6 @@ <h2 id="check-if-given-version-is-pre-release"><a class="header" href="#check-if
26742674

26752675
Ok(())
26762676
}</code></pre></pre>
2677-
<p>[`</p>
26782677
<h2 id="find-the-latest-version-satisfying-given-range"><a class="header" href="#find-the-latest-version-satisfying-given-range">Find the latest version satisfying given range</a></h2>
26792678
<p><a href="https://docs.rs/semver/"><img src="https://badge-cache.kominick.com/crates/v/semver.svg?label=semver" alt="semver-badge" /></a> <a href="https://crates.io/categories/config"><img src="https://badge-cache.kominick.com/badge/config--x.svg?style=social" alt="cat-config-badge" /></a></p>
26802679
<p>Given a list of version &amp;strs, finds the latest <a href="https://docs.rs/semver/*/semver/struct.Version.html"><code>semver::Version</code></a>.
@@ -3236,20 +3235,14 @@ <h2 id="serialize-records-to-csv-using-serde"><a class="header" href="#serialize
32363235
wtr.flush()?;
32373236

32383237
Ok(())
3239-
}
3240-
3241-
# Transform CSV column
3242-
3243-
[![csv-badge]][csv] [![serde-badge]][serde] [![cat-encoding-badge]][cat-encoding]
3244-
3245-
Transform a CSV file containing a color name and a hex color into one with a
3246-
color name and an rgb color. Utilizes the [csv] crate to read and write the
3247-
csv file, and [serde] to deserialize and serialize the rows to and from bytes.
3248-
3249-
See [csv::Reader::deserialize], [serde::Deserialize], and [std::str::FromStr]
3250-
3251-
```rust,edition2018
3252-
use anyhow::{Result, anyhow};
3238+
}</code></pre></pre>
3239+
<h2 id="transform-csv-column"><a class="header" href="#transform-csv-column">Transform CSV column</a></h2>
3240+
<p><a href="https://docs.rs/csv/"><img src="https://badge-cache.kominick.com/crates/v/csv.svg?label=csv" alt="csv-badge" /></a> <a href="https://docs.rs/serde/"><img src="https://badge-cache.kominick.com/crates/v/serde.svg?label=serde" alt="serde-badge" /></a> <a href="https://crates.io/categories/encoding"><img src="https://badge-cache.kominick.com/badge/encoding--x.svg?style=social" alt="cat-encoding-badge" /></a></p>
3241+
<p>Transform a CSV file containing a color name and a hex color into one with a
3242+
color name and an rgb color. Utilizes the <a href="https://docs.rs/csv/">csv</a> crate to read and write the
3243+
csv file, and <a href="https://docs.rs/serde/">serde</a> to deserialize and serialize the rows to and from bytes.</p>
3244+
<p>See <a href="https://docs.rs/csv/*/csv/struct.Reader.html#method.deserialize">csv::Reader::deserialize</a>, <a href="https://docs.rs/serde/*/serde/trait.Deserialize.html">serde::Deserialize</a>, and <a href="https://doc.rust-lang.org/std/str/trait.FromStr.html">std::str::FromStr</a></p>
3245+
<pre><pre class="playground"><code class="language-rust edition2018">use anyhow::{Result, anyhow};
32533246
use csv::{Reader, Writer};
32543247
use serde::{de, Deserialize, Deserializer};
32553248
use std::str::FromStr;
@@ -3758,18 +3751,13 @@ <h2 id="recursively-find-duplicate-file-names"><a class="header" href="#recursiv
37583751
println!("{}", f_name);
37593752
}
37603753
}
3761-
}
3762-
3763-
# Recursively find all files with given predicate
3764-
3765-
[![walkdir-badge]][walkdir] [![cat-filesystem-badge]][cat-filesystem]
3766-
3767-
Find JSON files modified within the last day in the current directory.
3768-
Using [`follow_links`] ensures symbolic links are followed like they were
3769-
normal directories and files.
3770-
3771-
```rust,edition2021
3772-
use walkdir::WalkDir;
3754+
}</code></pre></pre>
3755+
<h2 id="recursively-find-all-files-with-given-predicate"><a class="header" href="#recursively-find-all-files-with-given-predicate">Recursively find all files with given predicate</a></h2>
3756+
<p><a href="https://docs.rs/walkdir/"><img src="https://badge-cache.kominick.com/crates/v/walkdir.svg?label=walkdir" alt="walkdir-badge" /></a> <a href="https://crates.io/categories/filesystem"><img src="https://badge-cache.kominick.com/badge/filesystem--x.svg?style=social" alt="cat-filesystem-badge" /></a></p>
3757+
<p>Find JSON files modified within the last day in the current directory.
3758+
Using <a href="https://docs.rs/walkdir/*/walkdir/struct.WalkDir.html#method.follow_links"><code>follow_links</code></a> ensures symbolic links are followed like they were
3759+
normal directories and files.</p>
3760+
<pre><pre class="playground"><code class="language-rust edition2021">use walkdir::WalkDir;
37733761
use anyhow::Result;
37743762

37753763
fn main() -&gt; Result&lt;()&gt; {

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)