jellyfish icon indicating copy to clipboard operation
jellyfish copied to clipboard

fix: add missing Read/Write imports Update lib.rs

Open moshderte opened this issue 5 months ago • 1 comments

Description: This PR resolves a compilation error in the canonical_serde submodule where the traits Read and Write (from std::io) were not imported. Because of this omission, any attempt to compile the file failed with messages like:

error[E0412]: cannot find type Write in this scope error[E0412]: cannot find type Read in this scope

Changes:

Added use std::io::{Read, Write}; at the top of mod canonical_serde.

No other behavior or logic has been modified—the only impact is that serde-based serialization/deserialization and CanonicalSerialize/CanonicalDeserialize implementations now compile successfully.

With these imports in place, cargo build and cargo test both pass without errors.

moshderte avatar Jun 04 '25 20:06 moshderte

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 04 '25 20:06 CLAassistant