Work-around a Nim compilation error
This commit is contained in:
parent
3669b90ceb
commit
cf8a1a60a4
|
@ -30,7 +30,8 @@ type
|
||||||
|
|
||||||
func `$`*(pid: PeerID): string =
|
func `$`*(pid: PeerID): string =
|
||||||
## Return base58 encoded ``pid`` representation.
|
## Return base58 encoded ``pid`` representation.
|
||||||
Base58.encode(pid.data)
|
# This unusual call syntax is used to avoid a strange Nim compilation error
|
||||||
|
base58.encode(Base58, pid.data)
|
||||||
|
|
||||||
func shortLog*(pid: PeerId): string =
|
func shortLog*(pid: PeerId): string =
|
||||||
## Returns compact string representation of ``pid``.
|
## Returns compact string representation of ``pid``.
|
||||||
|
|
Loading…
Reference in New Issue