1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix failing v -W build-tools and v -W build-examples; run vfmt.

This commit is contained in:
Delyan Angelov
2021-03-19 09:49:26 +02:00
parent ea3d1405ee
commit 04095f4088
11 changed files with 22 additions and 21 deletions

View File

@ -131,11 +131,11 @@ fn main() {
max_bname := context.max_bname_len(file_byte_map.keys())
if context.write_file.len > 0 {
mut out_file := os.create(context.write_file) ?
out_file.write_str(context.header()) ?
out_file.write_string(context.header()) ?
for bname, fbytes in file_byte_map {
out_file.write_str(context.file2v(bname, fbytes, max_bname)) ?
out_file.write_string(context.file2v(bname, fbytes, max_bname)) ?
}
out_file.write_str(context.footer()) ?
out_file.write_string(context.footer()) ?
} else {
print(context.header())
for bname, fbytes in file_byte_map {