|
1 | 1 | use std::array;
|
2 | 2 |
|
3 |
| -use proc_macro2::{Ident, Span, TokenStream}; |
| 3 | +use proc_macro2::{Ident, TokenStream}; |
4 | 4 | use quote::{format_ident, quote, ToTokens};
|
5 |
| -use syn::{Generics, LitStr, Type, Visibility}; |
| 5 | +use syn::{Generics, Type, Visibility}; |
6 | 6 |
|
7 | 7 | use crate::parse::patch::ParsedPatch;
|
8 | 8 | use crate::MacroConfig;
|
@@ -71,10 +71,6 @@ pub fn partially_generate_patch<'a>(
|
71 | 71 | let value_space_marker_impl = format_ident!("__{patch}_ValueSpaceImplMarker");
|
72 | 72 |
|
73 | 73 | let decoder = format_ident!("__{patch}_Decoder");
|
74 |
| - let decoder_doc = LitStr::new( |
75 |
| - &format!("[`Decoder`]({rorm_path}::crud::decoder::Decoder) for [`{patch}`]",), |
76 |
| - Span::call_site(), |
77 |
| - ); |
78 | 74 |
|
79 | 75 | let [fields_1, fields_2, fields_3, fields_4, fields_5, fields_6, fields_7] =
|
80 | 76 | array::from_fn(|_| fields.clone());
|
@@ -105,7 +101,7 @@ pub fn partially_generate_patch<'a>(
|
105 | 101 | }
|
106 | 102 | #vis use #value_space_impl::*;
|
107 | 103 |
|
108 |
| - #[doc = #decoder_doc] |
| 104 | + #[doc(hidden)] |
109 | 105 | #vis struct #decoder #impl_generics #where_clause {
|
110 | 106 | #(
|
111 | 107 | #fields_1: <#types as #rorm_path::fields::traits::FieldType>::Decoder,
|
@@ -151,8 +147,6 @@ pub fn partially_generate_patch<'a>(
|
151 | 147 |
|
152 | 148 | type ValueSpaceImpl = #value_space_impl #type_generics;
|
153 | 149 |
|
154 |
| - type Decoder = #decoder #type_generics; |
155 |
| - |
156 | 150 | fn push_columns(columns: &mut Vec<&'static str>) {#(
|
157 | 151 | columns.extend(
|
158 | 152 | #rorm_path::fields::proxy::columns(|| <<Self as #rorm_path::model::Patch>::Model as #rorm_path::model::Model>::FIELDS.#fields_5)
|
|
0 commit comments