File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ function showExplanation() {
214214 textOutput . value = questions [ q ] . answer ;
215215 }
216216 buttonPlayground . href =
217- "https://play.rust-lang.org/?version=stable&mode=debug&edition=2015 &code="
217+ "https://play.rust-lang.org/?version=stable&mode=debug&edition=2018 &code="
218218 + encodeURIComponent ( questions [ q ] . code . trim ( ) ) ;
219219 show ( buttonPlayground ) ;
220220 show ( explanationAlert ) ;
Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ fn check_answer(path: &Path, expected: &str) {
138138
139139 let status = Command :: new ( "rustc" )
140140 . arg ( path)
141- . arg ( "--out-dir " )
142- . arg ( "/tmp/rust-quiz" )
141+ . arg ( "--edition=2018 " )
142+ . arg ( "--out-dir= /tmp/rust-quiz" )
143143 . stderr ( Stdio :: null ( ) )
144144 . status ( )
145145 . expect ( "failed to execute rustc" ) ;
You can’t perform that action at this time.
0 commit comments