File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
library/profiler_builtins Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -85,15 +85,9 @@ fn main() {
8585 let src_root = root. join ( "lib" ) . join ( "profile" ) ;
8686 assert ! ( src_root. exists( ) , "profiler runtime source directory not found: {src_root:?}" ) ;
8787 println ! ( "cargo::rerun-if-changed={}" , src_root. display( ) ) ;
88- let mut n_sources_found = 0u32 ;
89- for src in profile_sources {
90- let path = src_root. join ( src) ;
91- if path. exists ( ) {
92- cfg. file ( path) ;
93- n_sources_found += 1 ;
94- }
88+ for file in profile_sources {
89+ cfg. file ( src_root. join ( file) ) ;
9590 }
96- assert ! ( n_sources_found > 0 , "couldn't find any profiler runtime source files in {src_root:?}" ) ;
9791
9892 let include = root. join ( "include" ) ;
9993 println ! ( "cargo::rerun-if-changed={}" , include. display( ) ) ;
You can’t perform that action at this time.
0 commit comments