File tree 1 file changed +12
-14
lines changed
1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,16 @@ fn rustup(args: &[&str]) {
59
59
endgroup ! ( ) ;
60
60
}
61
61
62
+ fn add_nightly ( ) {
63
+ rustup ( & [
64
+ "component" ,
65
+ "add" ,
66
+ "rust-src" ,
67
+ "--toolchain" ,
68
+ "nightly-2023-07-01" ,
69
+ ] )
70
+ }
71
+
62
72
// Define and run a cargo command
63
73
fn run_cargo ( command : & str , params : Params , error : & str ) {
64
74
run_cargo_with_path :: < String > ( command, params, None , error)
@@ -79,13 +89,7 @@ fn run_cargo_with_path<P: AsRef<Path>>(
79
89
. unwrap ( )
80
90
. ends_with ( "examples/train-web/train" )
81
91
{
82
- rustup ( & [
83
- "component" ,
84
- "add" ,
85
- "rust-src" ,
86
- "--toolchain" ,
87
- "nightly-2023-07-01" ,
88
- ] ) ;
92
+ add_nightly ( ) ;
89
93
vec ! [ "+nightly-2023-07-01" ]
90
94
} else {
91
95
vec ! [ ]
@@ -426,13 +430,7 @@ fn check_typos() {
426
430
}
427
431
428
432
fn check_examples ( ) {
429
- rustup ( & [
430
- "component" ,
431
- "add" ,
432
- "rust-src" ,
433
- "--toolchain" ,
434
- "nightly-2023-07-01" ,
435
- ] ) ;
433
+ add_nightly ( ) ;
436
434
let workspaces = get_workspaces ( WorkspaceMemberType :: Example ) ;
437
435
for workspace in workspaces {
438
436
if workspace. name == "notebook" {
You can’t perform that action at this time.
0 commit comments