File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default class CrateSidebar extends Component {
31
31
let playgroundCrate = playgroundCrates . find ( it => it . name === this . args . crate . name ) ;
32
32
if ( ! playgroundCrate ) return ;
33
33
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` ;
35
35
}
36
36
37
37
get canHover ( ) {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ module('Component | CrateSidebar | Playground Button', function (hooks) {
48
48
this . version = ( await this . crate . versions ) . firstObject ;
49
49
50
50
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' ;
52
52
53
53
await render ( hbs `<CrateSidebar @crate={{this.crate}} @version={{this.version}} />` ) ;
54
54
assert . dom ( '[data-test-playground-button]' ) . hasAttribute ( 'href' , expectedHref ) ;
You can’t perform that action at this time.
0 commit comments