File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -639,12 +639,12 @@ fn bar() {
639
639
. file ( "assets/foo.txt" , "foo" )
640
640
. file ( "assets/bar.txt" , "bar" )
641
641
. build ( ) ;
642
- p. cargo ( "build " ) . run ( ) ;
642
+ p. cargo ( "check " ) . run ( ) ;
643
643
644
644
// Editing foo.txt won't recompile, leading to unnoticed changes
645
645
646
646
p. change_file ( "assets/foo.txt" , "foo updated" ) ;
647
- p. cargo ( "build -v" )
647
+ p. cargo ( "check -v" )
648
648
. with_stderr_data ( str![ [ r#"
649
649
[FRESH] foo v0.1.0 ([ROOT]/foo)
650
650
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
@@ -655,7 +655,7 @@ fn bar() {
655
655
// Editing bar.txt will recompile
656
656
657
657
p. change_file ( "assets/bar.txt" , "bar updated" ) ;
658
- p. cargo ( "build -v" )
658
+ p. cargo ( "check -v" )
659
659
. with_stderr_data ( str![ [ r#"
660
660
[DIRTY] foo v0.1.0 ([ROOT]/foo): the file `assets/bar.txt` has changed ([TIME_DIFF_AFTER_LAST_BUILD])
661
661
[COMPILING] foo v0.1.0 ([ROOT]/foo)
You can’t perform that action at this time.
0 commit comments