aboutsummaryrefslogtreecommitdiff
path: root/src/serde.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/serde.rs')
-rw-r--r--src/serde.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/serde.rs b/src/serde.rs
deleted file mode 100644
index f799611..0000000
--- a/src/serde.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-use code_writer::CodeWriter;
-use Customize;
-
-/// Write serde attr according to specified codegen option.
-pub fn write_serde_attr(w: &mut CodeWriter, customize: &Customize, attr: &str) {
- if customize.serde_derive.unwrap_or(false) {
- w.write_line(&format!("#[cfg_attr(feature = \"with-serde\", {})]", attr));
- }
-}