ambiguous calls between toHex from byteutils and nimcrypto (#901)

* Fix potential ambiguous calls between toHex from byteutils and nimcrypto due to mixin

* remove the mixins
This commit is contained in:
Mamy Ratsimbazafy 2020-04-17 20:10:39 +02:00 committed by GitHub
parent 3df9a22ff7
commit 17a0a965fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -1,8 +1,7 @@
import
deques, tables, options,
stew/[endians2], chronicles,
stew/[endians2, byteutils], chronicles,
spec/[datatypes, crypto, digest],
nimcrypto/utils,
beacon_chain_db
type
@ -222,9 +221,7 @@ type
proc shortLog*(v: AttachedValidator): string = shortLog(v.pubKey)
chronicles.formatIt BlockSlot:
mixin toHex
it.blck.root.data[0..3].toHex(true) & ":" & $it.slot
it.blck.root.data[0..3].toHex() & ":" & $it.slot
chronicles.formatIt BlockRef:
mixin toHex
it.root.data[0..3].toHex(true) & ":" & $it.slot
it.root.data[0..3].toHex() & ":" & $it.slot