Skip to content

Commit 888447e

Browse files
Merge branch 'master' into governance
2 parents bf29536 + f1a99ff commit 888447e

File tree

16 files changed

+76
-76
lines changed

16 files changed

+76
-76
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ matrix:
55
include:
66

77
# tests pass
8-
- rust: nightly-2018-07-18
8+
- rust: nightly-2018-08-06
99
script:
1010
- cargo test --all --locked
1111
- rustup component add rustfmt-preview

RustConfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION=nightly-2018-07-18
1+
VERSION=nightly-2018-08-06

src/category.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl Category {
2525
}
2626

2727
impl<'r> FromParam<'r> for Category {
28-
type Error = &'r RawStr;
28+
type Error = String;
2929

3030
fn from_param(param: &'r RawStr) -> Result<Self, Self::Error> {
3131
let res = param.url_decode();
@@ -34,10 +34,10 @@ impl<'r> FromParam<'r> for Category {
3434
if is_category(&url) {
3535
Ok(Category { name: url })
3636
} else {
37-
Err(RawStr::from_str("no such category"))
37+
Err(format!("No category called <{}>", url))
3838
}
3939
}
40-
Err(e) => Err(RawStr::from_str("url illegal in utf-8")),
40+
Err(e) => Err(format!("URL illegal in utf-8 ({})", e)),
4141
}
4242
}
4343
}

templates/community/index.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@
2020
<div class="highlight highlight-red"></div>
2121
</header>
2222
<div class="row">
23-
<div class="four columns">
23+
<div class="four columns" id="meetups-usergroups">
2424
<h3>Meetups and User Groups</h3>
2525
<p>Billions upon billions upon billions upon billions upon billions upon billions upon billions?</p>
2626
<a href="/community/events" class="button button-secondary">Learn More</a>
2727
<a href="#" class="button button-secondary">Register Your Meetup</a>
2828
</div>
29-
<div class="four columns">
29+
<div class="four columns" id="conferences">
3030
<h3>Conferences</h3>
3131
<p>Stirred by starlight culture inconspicuous motes of rock and gas, culture billions upon billions colonies a very small stage in a vast cosmic arena across the centuries made in the.</p>
3232
<a href="/community/events" class="button button-secondary">Conf Lineup</a>
3333
</div>
34-
<div class="four columns">
34+
<div class="four columns" id="event-support">
3535
<h3>Event Support</h3>
3636
<p>Across the centuries the carbon in our apple pies a billion trillion concept of the number one.</p>
3737
<a href="/community/events" class="button button-secondary">FOSS Event Planner</a>

templates/contribute/index.hbs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
<div class="container">
1111
<p>Cosmic fugue, bits of moving fluff take root and flourish quasar circumnavigated hundreds of thousands circumnavigated kindling the energy hidden in matter stirred by starlight Drake Equation rich in mystery extraordinary claims require extraordinary evidence hundreds of thousands, take root and flourish another world a still more glorious dawn awaits. Finite but unbounded.</p>
1212
<div class="row">
13-
<div class="six columns">
13+
<div class="six columns" id="governance">
1414
<h3>Governance</h3>
1515
<p>Finite but unbounded. Across the centuries kindling the energy hidden in matter at the edge of forever, kindling the energy hidden in matter the carbon in our apple pies.</p>
1616
<a href="/governance" class="button button-secondary">governance</a>
1717
</div>
18-
<div class="six columns">
18+
<div class="six columns" id="community-standards">
1919
<h3>Community Standards</h3>
2020
<p>Great turbulent clouds not a sunrise but a galaxyrise a very small stage in a vast cosmic arena how far away, Drake Equation colonies a mote of dust suspended in a sunbeam. Astonishment?</p>
2121
<a href="/policies/code-of-conduct" class="button button-secondary">Code of Conduct</a>
@@ -32,15 +32,15 @@
3232
</header>
3333
<p>Star stuff harvesting star light and billions upon billions upon billions upon billions upon billions upon billions upon billions?</p>
3434
<div class="row">
35-
<div class="four columns">
35+
<div class="four columns" id="users-forum">
3636
<h3>Users Forum</h3>
3737
<a href="#" class="button button-secondary">URLO</a>
3838
</div>
39-
<div class="four columns">
39+
<div class="four columns" id="internals-forum">
4040
<h3>Internals Forum</h3>
4141
<a href="#" class="button button-secondary">IRLO</a>
4242
</div>
43-
<div class="four columns">
43+
<div class="four columns" id="chat-platforms">
4444
<h3>Chat Platforms</h3>
4545
<a href="#" class="button button-secondary">Discord</a>
4646
<a href="#" class="button button-secondary">IRC</a>
@@ -57,12 +57,12 @@
5757
</header>
5858
<p>Vangelis at the edge of forever. Tesseract? Quasar the sky calls to us star stuff harvesting star light. Apollonius of Perga Flatland emerged into consciousness. Cambrian explosion galaxies citizens of distant epochs! </p>
5959
<div class="row">
60-
<div class="six columns">
60+
<div class="six columns" id="rust-nursery">
6161
<h3>Rust Nursery</h3>
6262
<p>A still more glorious dawn awaits stirred by starlight. Tunguska event hydrogen atoms, cosmos, Hypatia, of brilliant syntheses two ghostly white figures in coveralls and helmets are soflty dancing! </p>
6363
<a href="/contribute/nursery" class="button button-secondary">Rust Nursey</a>
6464
</div>
65-
<div class="six columns">
65+
<div class="six columns" id="github-org">
6666
<h3>Github Org</h3>
6767
<p>Citizens of distant epochs take root and flourish, the sky calls to us citizens of distant epochs, preserve and cherish that pale blue dot at the edge of forever inconspicuous motes of rock and gas.</p>
6868
<a href="#" class="button button-secondary">Github Org</a>

templates/footer.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<footer>
22
<div class="container">
33
<div class="row">
4-
<div class="four columns">
4+
<div class="four columns" id="get-help">
55
<h4>Get Help!</h4>
66
<ul>
77
<li><a href="#">The Rust Bookshelf</a></li>
88
<li><a href="#">Contact the Rust Team</a></li>
99
</ul>
1010
<div class="languages">
1111
{{> languages-dropdown }}
12-
</div>
12+
</div>
1313
</div>
14-
<div class="four columns">
14+
<div class="four columns" id="terms-and-policies">
1515
<h4>Terms and Policies</h4>
1616
<ul>
1717
<li><a href="/policies">Policies Index</a></li>
@@ -21,7 +21,7 @@
2121
<li><a href="/policies/security">Security Disclosures</a></li>
2222
</ul>
2323
</div>
24-
<div class="four columns">
24+
<div class="four columns" id="rust-social">
2525
<h4>Social</h4>
2626
<a href="#"><img src="/static/images/twitter.svg"/></a>
2727
<a href="#"><img src="/static/images/youtube.svg"/></a>
@@ -34,5 +34,5 @@
3434
Maintained by the Rust Team. See a typo? Send a fix <a href="#">here</a>!
3535
<div>Icons made by <a href="http://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a> is licensed by <a href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a></div>
3636
</div>
37-
</div>
37+
</div>
3838
</footer>

templates/learn/getting-started.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<header>
2323
<h2>Generating a New Project</h2>
2424
<div class="highlight highlight-purple"></div>
25-
</hedaer>
25+
</header>
2626
<pre>cargo new</pre>
2727
</div>
2828
</section>
@@ -44,7 +44,7 @@
4444
<div class="container">
4545
<header>
4646
<h2>Manging Rust Versions</h2>
47-
<div class="highlight highlight-yellow"</div>
47+
<div class="highlight highlight-yellow"></div>
4848
</header>
4949
<p>Link to explaniner of channels</p>
5050
<pre>rustup +nightly</pre>

templates/learn/index.hbs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="highlight highlight-purple"></div>
1515
</header>
1616
<div class="row">
17-
<div class="eight columns">
17+
<div class="eight columns" id="the-book">
1818
<p>Affectionately nicknamed "the book," <a
1919
href="https://doc.rust-lang.org/book/">The Rust Programming
2020
Language</a> will give you an overview of the language from first
@@ -30,7 +30,7 @@
3030
<img src="http://via.placeholder.com/350x200">
3131
</div>
3232
</div>
33-
</div>
33+
</div>
3434
</section>
3535

3636
<section id="learn-use">
@@ -41,31 +41,31 @@
4141
</header>
4242
<p>Once you've gotten familliar with the basics of the language, these resources can help you increase your knowledge and help you when you're actually using Rust day-to-day.</p>
4343
<div class="row">
44-
<div class="six columns">
44+
<div class="six columns" id="improve-skills">
4545
<h3>Improve your skills!</h3>
4646
<p>This stuff can take you to the next level:</p>
4747
<div class="row">
48-
<div class="six columns domain">
48+
<div class="six columns domain" id="cli-guide">
4949
<img src="/static/images/cli.svg" />
5050
<h4>CLI Guide</h4>
5151
</div>
52-
<div class="six columns domain">
52+
<div class="six columns domain" id="webassembly-guide">
5353
<img src="/static/images/webassembly.svg" />
5454
<h4>WebAssembly Guide</h4>
5555
</div>
5656
</div>
5757
<div class="row">
58-
<div class="six columns domain">
58+
<div class="six columns domain" id="networking-guide">
5959
<img src="/static/images/networking.svg" />
6060
<h4>Networking Guide</h4>
6161
</div>
62-
<div class="six columns domain">
62+
<div class="six columns domain" id="embedded-guide">
6363
<img src="/static/images/embedded.svg" />
6464
<h4>Embedded Guide</h4>
6565
</div>
6666
</div>
6767
</div>
68-
<div class="six columns">
68+
<div class="six columns" id="helpful-references">
6969
<h3>Helpful References</h3>
7070
<p>Here's some reference material you'll find useful when writing Rust.</p>
7171
<ul>
@@ -87,15 +87,15 @@
8787
</header>
8888
<p>Curious about the darkest corners of the language? Here's where you can get into the nitty-gritty:</p>
8989
<div class="row">
90-
<div class="four columns book">
90+
<div class="four columns book" id="the-reference">
9191
<img src="/static/images/reference.svg" />
9292
<p><a href="https://doc.rust-lang.org/reference/index.html">The Reference</a> is not a formal spec, but is more detailed and comprehensive than the book.</p>
9393
</div>
94-
<div class="four columns book">
94+
<div class="four columns book" id="rustonomicon">
9595
<img src="/static/images/nomicon.svg" />
9696
<p><a href="https://doc.rust-lang.org/nomicon/index.html">The Rustonomicon</a> is your guidebook to the dark arts of unsafe Rust. It's also sometimes called "the 'nomicon."</p>
9797
</div>
98-
<div class="four columns book">
98+
<div class="four columns book" id="the-unstable-book">
9999
<img src="/static/images/unstable.svg" />
100100
<p><a href="https://doc.rust-lang.org/unstable-book/index.html">The Unstable Book</a> has documentation for unstable features that you can only use with nightly Rust.</p>
101101
</div>

templates/panels/domains.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="highlight highlight-yellow"></div>
66
</header>
77
<div class="row">
8-
<div class="three columns">
8+
<div class="three columns" id="command-line">
99
<div class="domain-icon">
1010
<img src="/static/images/cli.svg"/>
1111
<a href="/what/cli"><h3>Command Line</h3></a>
@@ -14,7 +14,7 @@
1414
This is written in the train from Varna to Galatz. Last night we all assembled a little before the time of sunset.
1515
</p>
1616
</div>
17-
<div class="three columns">
17+
<div class="three columns" id="web-assembly">
1818
<div class="domain-icon">
1919
<img src="/static/images/webassembly.svg"/>
2020
<a href="/what/wasm"><h3>Web Assembly</h3></a>
@@ -23,7 +23,7 @@
2323
Each of us had done his work as well as he could; so far as thought, and endeavour, and opportunity go, we are prepared for the whole of our journey, and for our work when we get to Galatz.
2424
</p>
2525
</div>
26-
<div class="three columns">
26+
<div class="three columns" id="networking">
2727
<div class="domain-icon">
2828
<img src="/static/images/networking.svg" />
2929
<a href="/what/server"><h3>Networking</h3></a>
@@ -32,7 +32,7 @@
3232
When the usual time came round Mrs. Harker prepared herself for her hypnotic effort; and after a longer and more serious effort on the part of Van Helsing than has been usually necessary, she sank into the trance
3333
</p>
3434
</div>
35-
<div class="three columns">
35+
<div class="three columns" id="embedded">
3636
<div class="domain-icon">
3737
<img src="/static/images/embedded.svg"/>
3838
<a href="/what/embedded"><h3>Embedded</h3></a>

templates/panels/get-involved.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55
<div class="highlight highlight-green">
66
</header>
77
<div class="row">
8-
<div class="eight columns">
8+
<div class="eight columns" id="contrubite-code">
99
<div class="code">
1010
<h3>Contribute Code</h3>
1111
<p>Euclid radio telescope dispassionate extraterrestrial observer star stuff harvesting star light, courage of our questions radio telescope made in the interiors of collapsing stars, hydrogen atoms!</p>
1212
<a href="#" class="button button-secondary">Learn More</a>
1313
</div>
1414
<div class="row media">
15-
<div class="six columns">
15+
<div class="six columns" id="read-rust">
1616
<h3>Read Rust!</h3>
1717
<p>Billions upon billions citizens of distant epochs the only home we've ever known science cosmic ocean shores of the cosmic ocean culture.</p>
1818
<a href="#" class="button button-secondary">Learn More</a>
1919
</div>
20-
<div class="six columns">
20+
<div class="six columns" id="watch-rust">
2121
<h3>Watch Rust</h3>
2222
<p>Star stuff harvesting star light tingling of the spine a very small stage in a vast cosmic arena.</p>
2323
<a href="#" class="button button-secondary">Learn More</a>
2424
</div>
2525
</div>
2626
</div>
27-
<div class="four columns">
27+
<div class="four columns" id="upcoming-events">
2828
<h3>Upcoming Rust Events</h3>
2929
<iframe src="https://calendar.google.com/calendar/embed?showTitle=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;mode=AGENDA&amp;height=400&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=apd9vmbc22egenmtu5l6c5jbfc%40group.calendar.google.com&amp;color=%23691426&amp;ctz=Europe%2FMadrid" style="border-width:0" height="400" frameborder="0" scrolling="no"></iframe>
3030
</div>

0 commit comments

Comments
 (0)