From 89daec4e933bc88d61a4392d36d1ddc421ae86fe Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 24 Oct 2020 20:41:47 +0300 Subject: [PATCH] ci: run vfmt over compile.v and checker.v --- vlib/v/builder/compile.v | 2 +- vlib/v/checker/checker.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/builder/compile.v b/vlib/v/builder/compile.v index cc3cdf3709..c8c9ad8be2 100644 --- a/vlib/v/builder/compile.v +++ b/vlib/v/builder/compile.v @@ -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')) } diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 4c7231b18d..71f1f62894 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -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 }