mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: error on unused imports
This commit is contained in:
committed by
Alexander Medvednikov
parent
71484e89d6
commit
23c84516e2
@@ -8,7 +8,6 @@
|
||||
module aes
|
||||
|
||||
import (
|
||||
crypto.cipher
|
||||
crypto.internal.subtle
|
||||
)
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ fn _new_cbc(b AesCipher, iv []byte) AesCbc {
|
||||
b: b,
|
||||
block_size: b.block_size(),
|
||||
iv: iv.clone(),
|
||||
tmp: [byte(0); b.block_size()],
|
||||
tmp: [byte(0)].repeat(b.block_size()),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
module aes
|
||||
|
||||
import (
|
||||
crypto.cipher
|
||||
crypto.internal.subtle
|
||||
// crypto.cipher
|
||||
// crypto.internal.subtle
|
||||
)
|
||||
|
||||
// new_cipher_generic creates and returns a new cipher.Block
|
||||
|
||||
Reference in New Issue
Block a user