File tree Expand file tree Collapse file tree 9 files changed +34
-34
lines changed Expand file tree Collapse file tree 9 files changed +34
-34
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ members = [
8
8
" src/bare-metal/useful-crates/allocator-example" ,
9
9
" src/bare-metal/useful-crates/zerocopy-example" ,
10
10
" src/borrowing" ,
11
+ " src/concurrency/async-exercises/chat-async" ,
12
+ " src/concurrency/sync-exercises" ,
11
13
" src/control-flow-basics" ,
12
14
" src/error-handling" ,
13
- " src/concurrency/sync-exercises" ,
14
- " src/concurrency/async-exercises/chat-async" ,
15
15
" src/generics" ,
16
16
" src/iterators" ,
17
17
" src/lifetimes" ,
Original file line number Diff line number Diff line change 21
21
" target/"
22
22
],
23
23
"plugins" : [
24
- " https://plugins.dprint.dev/exec-0.4.3 .json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072 " ,
25
- " https://plugins.dprint.dev/json-0.17.4 .wasm" ,
26
- " https://plugins.dprint.dev/markdown-0.16.2 .wasm" ,
27
- " https://plugins.dprint.dev/toml-0.5.4 .wasm" ,
28
- " https://plugins.dprint.dev/prettier-0.27 .0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe "
24
+ " https://plugins.dprint.dev/exec-0.5.1 .json@492414e39dea4dccc07b4af796d2f4efdb89e84bae2bd4e1e924c0cc050855bf " ,
25
+ " https://plugins.dprint.dev/json-0.20.0 .wasm" ,
26
+ " https://plugins.dprint.dev/markdown-0.18.0 .wasm" ,
27
+ " https://plugins.dprint.dev/toml-0.7.0 .wasm" ,
28
+ " https://plugins.dprint.dev/prettier-0.56 .0.json@0b67676535141b03f0eb0648172d3a20f13044b3d8df677d645bd79e3ee5147f "
29
29
]
30
30
}
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export default class Playground {
75
75
"Access-Control-Allow-Origin" : "*" ,
76
76
} ,
77
77
fetchResponse : false ,
78
- }
78
+ } ,
79
79
) ;
80
80
}
81
81
@@ -100,7 +100,7 @@ export default class Playground {
100
100
"Access-Control-Allow-Origin" : "*" ,
101
101
} ,
102
102
fetchResponse : false ,
103
- }
103
+ } ,
104
104
) ;
105
105
}
106
106
}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ describe("Playground", () => {
42
42
await expect ( playground . stderr ) . toBeDisplayed ( ) ;
43
43
// check for error message in stderr
44
44
await expect ( playground . stderr ) . toHaveText (
45
- expect . stringContaining ( "error: could not compile" )
45
+ expect . stringContaining ( "error: could not compile" ) ,
46
46
) ;
47
47
await expect ( playground . stdout ) . toHaveText ( "No output" ) ;
48
48
} ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ describe("speaker-notes", () => {
25
25
const handles = await browser . getWindowHandles ( ) ;
26
26
await browser . switchToWindow ( handles [ 1 ] ) ;
27
27
await expect ( browser ) . toHaveUrl (
28
- expect . stringContaining ( "#speaker-notes-open" )
28
+ expect . stringContaining ( "#speaker-notes-open" ) ,
29
29
) ;
30
30
} ) ;
31
31
} ) ;
Original file line number Diff line number Diff line change @@ -10,5 +10,5 @@ export const config = deepmerge(
10
10
// clean services
11
11
services : [ ] ,
12
12
} ,
13
- { clone : false }
13
+ { clone : false } ,
14
14
) ;
Original file line number Diff line number Diff line change 13
13
instructorMenuList . insertBefore ( redBoxItem , instructorMenuList . lastChild ) ;
14
14
instructorMenuList . insertBefore (
15
15
playgroundStateItem ,
16
- instructorMenuList . lastChild
16
+ instructorMenuList . lastChild ,
17
17
) ;
18
18
redBoxItem . insertBefore ( redBoxButton , redBoxItem . lastChild ) ;
19
19
playgroundStateItem . insertBefore (
20
20
playgroundStateButton ,
21
- playgroundStateItem . lastChild
21
+ playgroundStateItem . lastChild ,
22
22
) ;
23
23
24
24
instructorMenu . title = "Utilities for course instructors" ;
66
66
var playgroundStateButton = document . getElementById ( "playground-state" ) ;
67
67
redBoxButton . addEventListener ( "click" , ( ) => window . redboxButtonClicked ( ) ) ;
68
68
playgroundStateButton . addEventListener ( "click" , ( ) =>
69
- window . resetPlaygroundsClicked ( )
69
+ window . resetPlaygroundsClicked ( ) ,
70
70
) ;
71
71
} ) ( ) ;
Original file line number Diff line number Diff line change 1
1
( function savePlaygrounds ( ) {
2
2
function setCodeToPlayground ( ) {
3
3
var codes = JSON . parse (
4
- localStorage . getItem ( `${ window . location . href } ₹code` )
4
+ localStorage . getItem ( `${ window . location . href } ₹code` ) ,
5
5
) ;
6
6
if ( codes ) {
7
7
var i = 0 ;
8
- Array . from ( document . querySelectorAll ( ".playground" ) ) . forEach ( function (
9
- pre_block
10
- ) {
11
- let code_block = pre_block . querySelector ( "code" ) ;
12
- let editor = window . ace . edit ( code_block ) ;
13
- editor . setValue ( codes [ i ] ) ;
14
- editor . clearSelection ( ) ;
15
- i += 1 ;
16
- } ) ;
8
+ Array . from ( document . querySelectorAll ( ".playground" ) ) . forEach (
9
+ function ( pre_block ) {
10
+ let code_block = pre_block . querySelector ( "code" ) ;
11
+ let editor = window . ace . edit ( code_block ) ;
12
+ editor . setValue ( codes [ i ] ) ;
13
+ editor . clearSelection ( ) ;
14
+ i += 1 ;
15
+ } ,
16
+ ) ;
17
17
}
18
18
}
19
19
function getCodeFromPlayground ( ) {
20
20
var codes = [ ] ;
21
- Array . from ( document . querySelectorAll ( ".playground" ) ) . forEach ( function (
22
- pre_block
23
- ) {
24
- let code_block = pre_block . querySelector ( "code" ) ;
25
- let editor = window . ace . edit ( code_block ) ;
26
- let code = editor . getValue ( ) ;
27
- codes . push ( code ) ;
28
- } ) ;
21
+ Array . from ( document . querySelectorAll ( ".playground" ) ) . forEach (
22
+ function ( pre_block ) {
23
+ let code_block = pre_block . querySelector ( "code" ) ;
24
+ let editor = window . ace . edit ( code_block ) ;
25
+ let code = editor . getValue ( ) ;
26
+ codes . push ( code ) ;
27
+ } ,
28
+ ) ;
29
29
localStorage . setItem ( `${ window . location . href } ₹code` , JSON . stringify ( codes ) ) ;
30
30
}
31
31
setCodeToPlayground ( ) ;
Original file line number Diff line number Diff line change 124
124
} ;
125
125
} else {
126
126
window . alert (
127
- "Could not open popup, please check your popup blocker settings."
127
+ "Could not open popup, please check your popup blocker settings." ,
128
128
) ;
129
129
}
130
130
} ) ;
You can’t perform that action at this time.
0 commit comments