Use serde feature flag instead of serialize.

The old one is still supported.
This commit is contained in:
Alex Orlenko
2025-06-12 13:35:22 +01:00
parent 2fbbbe4238
commit 7bc72be7d3
20 changed files with 94 additions and 91 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ use crate::traits::IntoLua;
use crate::types::{LuaType, ValueRef};
use crate::value::Value;
#[cfg(feature = "serialize")]
#[cfg(feature = "serde")]
use {
serde::ser::{Serialize, Serializer},
std::result::Result as StdResult,
@@ -211,7 +211,7 @@ impl Hash for String {
}
}
#[cfg(feature = "serialize")]
#[cfg(feature = "serde")]
impl Serialize for String {
fn serialize<S>(&self, serializer: S) -> StdResult<S::Ok, S::Error>
where