fix: correct visibility in gate_serialization macros (#1650)

* fix: correct visibility in gate_serialization macros

* chore: cargo fmt
This commit is contained in:
Nikita Masych 2025-01-22 17:51:09 +02:00 committed by GitHub
parent 892f51bd12
commit cc0834ae07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,10 +1,11 @@
//! A module to help with GateRef serialization
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
pub use alloc::vec::Vec;
#[cfg(feature = "std")]
use std::vec::Vec; // For macros below
pub use std::vec::Vec; // For macros below
pub use log;
use plonky2_field::extension::Extendable;
use crate::gates::gate::GateRef;
@ -51,8 +52,8 @@ macro_rules! get_gate_tag_impl {
Ok(tag)
} else)*
{
log::log!(
log::Level::Error,
$crate::util::serialization::gate_serialization::log::log!(
$crate::util::serialization::gate_serialization::log::Level::Error,
"attempted to serialize gate with id `{}` which is unsupported by this gate serializer",
$gate.0.id()
);