From 620fc962d7c60d751f5d3639af07137a1370f3cd Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 26 Apr 2020 08:06:33 +0300 Subject: [PATCH] builtin: use single line imports, to make analysis easier --- vlib/builtin/array.v | 4 +--- vlib/builtin/bare/syscallwrapper_test.v | 4 +--- vlib/builtin/float.v | 4 +--- vlib/builtin/map.v | 6 ++---- 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/vlib/builtin/array.v b/vlib/builtin/array.v index 64fe8849cf..d20aecd72b 100644 --- a/vlib/builtin/array.v +++ b/vlib/builtin/array.v @@ -3,9 +3,7 @@ // that can be found in the LICENSE file. module builtin -import ( - strings -) +import strings pub struct array { pub: diff --git a/vlib/builtin/bare/syscallwrapper_test.v b/vlib/builtin/bare/syscallwrapper_test.v index acda48d07a..b293978c8e 100644 --- a/vlib/builtin/bare/syscallwrapper_test.v +++ b/vlib/builtin/bare/syscallwrapper_test.v @@ -1,6 +1,4 @@ -import ( - os -) +import os fn test_syscallwrappers() { if true { return } diff --git a/vlib/builtin/float.v b/vlib/builtin/float.v index c989e11f63..b4d84ce58e 100644 --- a/vlib/builtin/float.v +++ b/vlib/builtin/float.v @@ -3,9 +3,7 @@ // that can be found in the LICENSE file. module builtin -import ( - strconv.ftoa -) +import strconv.ftoa #include // ----- f64 to string functions ----- diff --git a/vlib/builtin/map.v b/vlib/builtin/map.v index ec41fe2f3d..749ad1386b 100644 --- a/vlib/builtin/map.v +++ b/vlib/builtin/map.v @@ -3,10 +3,8 @@ // that can be found in the LICENSE file. module builtin -import ( - strings - hash.wyhash -) +import strings +import hash.wyhash fn C.memcmp(byteptr, byteptr, int) int