mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
hash: move dummy map initialisation into an fn init(){}, so users do not have to do it explicitly to be compatible with -skip-unused
This commit is contained in:
@@ -6,9 +6,6 @@ import rand
|
||||
import benchmark
|
||||
|
||||
fn main() {
|
||||
_ := map{
|
||||
1: 1
|
||||
}
|
||||
rand.seed([u32(42), 0])
|
||||
sample_size := 10000000
|
||||
min_str_len := 20
|
||||
|
||||
@@ -4,9 +4,6 @@ import os
|
||||
import v.vcache
|
||||
|
||||
fn main() {
|
||||
_ := map{
|
||||
1: 1
|
||||
}
|
||||
mut cm := vcache.new_cache_manager([])
|
||||
cpath := cm.basepath
|
||||
if os.exists(cpath) && os.is_dir(cpath) {
|
||||
|
||||
Reference in New Issue
Block a user