aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/any.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-26 06:27:16 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-26 06:41:01 +0800
commitd1a74ce57e5be72436376a829e9c7e1e7c1c561b (patch)
tree6ac923671fc09f1c47b613869d793ed3e04b91db /mingling_core/src/any.rs
parente735671acb3a81e1b7e334e56b9ef3963ba0c2fc (diff)
refactor(general_renderer): rename to structural_renderer
Diffstat (limited to 'mingling_core/src/any.rs')
-rw-r--r--mingling_core/src/any.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/mingling_core/src/any.rs b/mingling_core/src/any.rs
index ef9f912..ad02b0c 100644
--- a/mingling_core/src/any.rs
+++ b/mingling_core/src/any.rs
@@ -161,7 +161,7 @@ mod tests {
}
#[derive(Debug, Clone, PartialEq)]
- #[cfg_attr(feature = "general_renderer", derive(serde::Serialize))]
+ #[cfg_attr(feature = "structural_renderer", derive(serde::Serialize))]
struct AlphaData {
value: i32,
}
@@ -173,7 +173,7 @@ mod tests {
}
#[derive(Debug, Clone, PartialEq)]
- #[cfg_attr(feature = "general_renderer", derive(serde::Serialize))]
+ #[cfg_attr(feature = "structural_renderer", derive(serde::Serialize))]
struct BetaData {
name: String,
}
@@ -186,7 +186,7 @@ mod tests {
#[derive(Debug, Clone, PartialEq)]
#[allow(dead_code)]
- #[cfg_attr(feature = "general_renderer", derive(serde::Serialize))]
+ #[cfg_attr(feature = "structural_renderer", derive(serde::Serialize))]
struct GammaData;
impl Groupped<MockGroup> for GammaData {
@@ -333,9 +333,9 @@ mod tests {
assert_eq!(format!("{}", NextProcess::Renderer), "Renderer");
}
- // AnyOutput::restore general_renderer feature only
+ // AnyOutput::restore structural_renderer feature only
- #[cfg(feature = "general_renderer")]
+ #[cfg(feature = "structural_renderer")]
#[test]
fn test_any_output_restore_success() {
use serde::Serialize;
@@ -357,7 +357,7 @@ mod tests {
assert_eq!(restored, Some(SerData { x: 42 }));
}
- #[cfg(feature = "general_renderer")]
+ #[cfg(feature = "structural_renderer")]
#[test]
fn test_any_output_restore_type_mismatch() {
use serde::Serialize;