mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 12:48:14 +00:00
Keep -vet happy by removing using
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user