Keep -vet happy by removing using

This commit is contained in:
gingerBill
2023-07-31 12:32:30 +01:00
parent 5dba08fb3b
commit be6f355665
5 changed files with 99 additions and 143 deletions
@@ -1,4 +1,3 @@
//+vet !using-stmt
package test_core_text_i18n
import "core:mem"
@@ -119,8 +118,6 @@ TESTS := []Test_Suite{
@test
tests :: proc(t: ^testing.T) {
using fmt
cat: ^i18n.Translation
err: i18n.Error
@@ -143,8 +140,6 @@ tests :: proc(t: ^testing.T) {
}
main :: proc() {
using fmt
track: mem.Tracking_Allocator
mem.tracking_allocator_init(&track, context.allocator)
context.allocator = mem.tracking_allocator(&track)
@@ -158,9 +153,9 @@ main :: proc() {
}
if len(track.allocation_map) > 0 {
println()
fmt.println()
for _, v in track.allocation_map {
printf("%v Leaked %v bytes.\n", v.location, v.size)
fmt.printf("%v Leaked %v bytes.\n", v.location, v.size)
}
}
}