feat(build): Add build_transport builder option (#1130)
This commit is contained in:
@@ -213,6 +213,14 @@ fn generate_attributes<'a>(
|
||||
|
||||
// Generate a singular line of a doc comment
|
||||
fn generate_doc_comment<S: AsRef<str>>(comment: S) -> TokenStream {
|
||||
let comment = comment.as_ref();
|
||||
|
||||
let comment = if !comment.starts_with(" ") {
|
||||
format!(" {}", comment)
|
||||
} else {
|
||||
comment.to_string()
|
||||
};
|
||||
|
||||
let mut doc_stream = TokenStream::new();
|
||||
|
||||
doc_stream.append(Ident::new("doc", Span::call_site()));
|
||||
|
||||
Reference in New Issue
Block a user