Skip to content

Unable to deserialize object #34

@srozb

Description

@srozb

Hi,
I was trying to serialize and deserialize bloom filter object, and deserialization gives me the following error during the compilation:

flatty-0.3.4/flatty.nim(171, 23) Error: for a 'var' type a variable needs to be passed; but 'uint64(x.capacity)' is immutable

code causing the issue is:

proc importFlatty*(srcPath: string): Bloom =
  result = srcPath.readFile().fromFlatty(Bloom)

and it works perfectly the opposite way (toFlatty).

Is that a bug or me doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions