Skip to content

Commit d989a0f

Browse files
committed
Update playground link's edition to 2021
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
1 parent f98c591 commit d989a0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/components/crate-sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class CrateSidebar extends Component {
3131
let playgroundCrate = playgroundCrates.find(it => it.name === this.args.crate.name);
3232
if (!playgroundCrate) return;
3333

34-
return `https://play.rust-lang.org/?edition=2018&code=use%20${playgroundCrate.id}%3B%0A%0Afn%20main()%20%7B%0A%20%20%20%20%2F%2F%20try%20using%20the%20%60${playgroundCrate.id}%60%20crate%20here%0A%7D`;
34+
return `https://play.rust-lang.org/?edition=2021&code=use%20${playgroundCrate.id}%3B%0A%0Afn%20main()%20%7B%0A%20%20%20%20%2F%2F%20try%20using%20the%20%60${playgroundCrate.id}%60%20crate%20here%0A%7D`;
3535
}
3636

3737
get canHover() {

tests/components/crate-sidebar/playground-button-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module('Component | CrateSidebar | Playground Button', function (hooks) {
4848
this.version = (await this.crate.versions).firstObject;
4949

5050
let expectedHref =
51-
'https://play.rust-lang.org/?edition=2018&code=use%20aho_corasick%3B%0A%0Afn%20main()%20%7B%0A%20%20%20%20%2F%2F%20try%20using%20the%20%60aho_corasick%60%20crate%20here%0A%7D';
51+
'https://play.rust-lang.org/?edition=2021&code=use%20aho_corasick%3B%0A%0Afn%20main()%20%7B%0A%20%20%20%20%2F%2F%20try%20using%20the%20%60aho_corasick%60%20crate%20here%0A%7D';
5252

5353
await render(hbs`<CrateSidebar @crate={{this.crate}} @version={{this.version}} />`);
5454
assert.dom('[data-test-playground-button]').hasAttribute('href', expectedHref);

0 commit comments

Comments
 (0)