diff --git a/proxmox-api-macro/src/util.rs b/proxmox-api-macro/src/util.rs index 97481313..d5488def 100644 --- a/proxmox-api-macro/src/util.rs +++ b/proxmox-api-macro/src/util.rs @@ -417,7 +417,7 @@ pub fn get_doc_comments(attributes: &[syn::Attribute]) -> Result<(String, Span), if attr.path.is_ident("doc") { let doc: BareAssignment = syn::parse2(attr.tokens.clone())?; if !doc_comment.is_empty() { - doc_comment.push_str("\n"); + doc_comment.push('\n'); } doc_comment.push_str(doc.content.value().trim()); } diff --git a/proxmox/src/api/schema.rs b/proxmox/src/api/schema.rs index ba65cbcb..fc3cb159 100644 --- a/proxmox/src/api/schema.rs +++ b/proxmox/src/api/schema.rs @@ -58,7 +58,7 @@ impl fmt::Display for ParameterError { let s = item.to_string(); msg.reserve(s.len() + 1); msg.push_str(&s); - msg.push_str("\n"); + msg.push('\n'); } write!(f, "{}", msg)