diff --git a/Cargo.toml b/Cargo.toml index de8d0c51..2452ca07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,10 +8,10 @@ members = [ "src/bare-metal/useful-crates/allocator-example", "src/bare-metal/useful-crates/zerocopy-example", "src/borrowing", + "src/concurrency/async-exercises/chat-async", + "src/concurrency/sync-exercises", "src/control-flow-basics", "src/error-handling", - "src/concurrency/sync-exercises", - "src/concurrency/async-exercises/chat-async", "src/generics", "src/iterators", "src/lifetimes", diff --git a/dprint.json b/dprint.json index 891061ef..244ce753 100644 --- a/dprint.json +++ b/dprint.json @@ -21,10 +21,10 @@ "target/" ], "plugins": [ - "https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072", - "https://plugins.dprint.dev/json-0.17.4.wasm", - "https://plugins.dprint.dev/markdown-0.16.2.wasm", - "https://plugins.dprint.dev/toml-0.5.4.wasm", - "https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe" + "https://plugins.dprint.dev/exec-0.5.1.json@492414e39dea4dccc07b4af796d2f4efdb89e84bae2bd4e1e924c0cc050855bf", + "https://plugins.dprint.dev/json-0.20.0.wasm", + "https://plugins.dprint.dev/markdown-0.18.0.wasm", + "https://plugins.dprint.dev/toml-0.7.0.wasm", + "https://plugins.dprint.dev/prettier-0.56.0.json@0b67676535141b03f0eb0648172d3a20f13044b3d8df677d645bd79e3ee5147f" ] } diff --git a/tests/src/objects/playground.ts b/tests/src/objects/playground.ts index 169bf681..d7f393e5 100644 --- a/tests/src/objects/playground.ts +++ b/tests/src/objects/playground.ts @@ -75,7 +75,7 @@ export default class Playground { "Access-Control-Allow-Origin": "*", }, fetchResponse: false, - } + }, ); } @@ -100,7 +100,7 @@ export default class Playground { "Access-Control-Allow-Origin": "*", }, fetchResponse: false, - } + }, ); } } diff --git a/tests/src/playground.test.ts b/tests/src/playground.test.ts index 182031ef..8c4f4890 100644 --- a/tests/src/playground.test.ts +++ b/tests/src/playground.test.ts @@ -42,7 +42,7 @@ describe("Playground", () => { await expect(playground.stderr).toBeDisplayed(); // check for error message in stderr await expect(playground.stderr).toHaveText( - expect.stringContaining("error: could not compile") + expect.stringContaining("error: could not compile"), ); await expect(playground.stdout).toHaveText("No output"); }); diff --git a/tests/src/speaker-notes.test.ts b/tests/src/speaker-notes.test.ts index 52c429c6..0b5debf0 100644 --- a/tests/src/speaker-notes.test.ts +++ b/tests/src/speaker-notes.test.ts @@ -25,7 +25,7 @@ describe("speaker-notes", () => { const handles = await browser.getWindowHandles(); await browser.switchToWindow(handles[1]); await expect(browser).toHaveUrl( - expect.stringContaining("#speaker-notes-open") + expect.stringContaining("#speaker-notes-open"), ); }); }); diff --git a/tests/wdio.conf-mdbook.ts b/tests/wdio.conf-mdbook.ts index 380f3c91..cc60aec6 100644 --- a/tests/wdio.conf-mdbook.ts +++ b/tests/wdio.conf-mdbook.ts @@ -10,5 +10,5 @@ export const config = deepmerge( // clean services services: [], }, - { clone: false } + { clone: false }, ); diff --git a/theme/instructor-menu.js b/theme/instructor-menu.js index 7d742e5d..267b2000 100644 --- a/theme/instructor-menu.js +++ b/theme/instructor-menu.js @@ -13,12 +13,12 @@ instructorMenuList.insertBefore(redBoxItem, instructorMenuList.lastChild); instructorMenuList.insertBefore( playgroundStateItem, - instructorMenuList.lastChild + instructorMenuList.lastChild, ); redBoxItem.insertBefore(redBoxButton, redBoxItem.lastChild); playgroundStateItem.insertBefore( playgroundStateButton, - playgroundStateItem.lastChild + playgroundStateItem.lastChild, ); instructorMenu.title = "Utilities for course instructors"; @@ -66,6 +66,6 @@ var playgroundStateButton = document.getElementById("playground-state"); redBoxButton.addEventListener("click", () => window.redboxButtonClicked()); playgroundStateButton.addEventListener("click", () => - window.resetPlaygroundsClicked() + window.resetPlaygroundsClicked(), ); })(); diff --git a/theme/save-playgrounds.js b/theme/save-playgrounds.js index bfe45e47..cdeb4efc 100644 --- a/theme/save-playgrounds.js +++ b/theme/save-playgrounds.js @@ -1,31 +1,31 @@ (function savePlaygrounds() { function setCodeToPlayground() { var codes = JSON.parse( - localStorage.getItem(`${window.location.href}₹code`) + localStorage.getItem(`${window.location.href}₹code`), ); if (codes) { var i = 0; - Array.from(document.querySelectorAll(".playground")).forEach(function ( - pre_block - ) { - let code_block = pre_block.querySelector("code"); - let editor = window.ace.edit(code_block); - editor.setValue(codes[i]); - editor.clearSelection(); - i += 1; - }); + Array.from(document.querySelectorAll(".playground")).forEach( + function (pre_block) { + let code_block = pre_block.querySelector("code"); + let editor = window.ace.edit(code_block); + editor.setValue(codes[i]); + editor.clearSelection(); + i += 1; + }, + ); } } function getCodeFromPlayground() { var codes = []; - Array.from(document.querySelectorAll(".playground")).forEach(function ( - pre_block - ) { - let code_block = pre_block.querySelector("code"); - let editor = window.ace.edit(code_block); - let code = editor.getValue(); - codes.push(code); - }); + Array.from(document.querySelectorAll(".playground")).forEach( + function (pre_block) { + let code_block = pre_block.querySelector("code"); + let editor = window.ace.edit(code_block); + let code = editor.getValue(); + codes.push(code); + }, + ); localStorage.setItem(`${window.location.href}₹code`, JSON.stringify(codes)); } setCodeToPlayground(); diff --git a/theme/speaker-notes.js b/theme/speaker-notes.js index b155b0a9..e4f8f13c 100644 --- a/theme/speaker-notes.js +++ b/theme/speaker-notes.js @@ -124,7 +124,7 @@ }; } else { window.alert( - "Could not open popup, please check your popup blocker settings." + "Could not open popup, please check your popup blocker settings.", ); } });