ci: run vfmt over compile.v and checker.v
parent
6c267f1c74
commit
89daec4e93
|
@ -26,7 +26,7 @@ fn (mut b Builder) get_vtmp_filename(base_file_name string, postfix string) stri
|
|||
vtmp := get_vtmp_folder()
|
||||
mut uniq := ''
|
||||
if !b.pref.reuse_tmpc {
|
||||
uniq = '.${rand.u64()}'
|
||||
uniq = '.$rand.u64()'
|
||||
}
|
||||
return os.real_path(os.join_path(vtmp, os.file_name(os.real_path(base_file_name)) + '$uniq$postfix'))
|
||||
}
|
||||
|
|
|
@ -3850,7 +3850,7 @@ pub fn (mut c Checker) add_error_detail(s string) {
|
|||
}
|
||||
|
||||
pub fn (mut c Checker) warn(s string, pos token.Position) {
|
||||
allow_warnings := !(c.pref.is_prod || c.pref.warns_are_errors)// allow warnings only in dev builds
|
||||
allow_warnings := !(c.pref.is_prod || c.pref.warns_are_errors) // allow warnings only in dev builds
|
||||
c.warn_or_error(s, pos, allow_warnings) // allow warnings only in dev builds
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue