From b09e4aa9ef4d2b13c0c0ac391efb673f0c6f0b27 Mon Sep 17 00:00:00 2001 From: wtfsck Date: Fri, 20 Aug 2021 19:59:14 +0200 Subject: [PATCH] Add missing #[doc] attrs --- src/rust/iced-x86/src/formatter/symres.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rust/iced-x86/src/formatter/symres.rs b/src/rust/iced-x86/src/formatter/symres.rs index 67cd7fa0c..fc675e6c5 100644 --- a/src/rust/iced-x86/src/formatter/symres.rs +++ b/src/rust/iced-x86/src/formatter/symres.rs @@ -27,9 +27,9 @@ pub trait SymbolResolver { #[derive(Debug, Clone, Eq, PartialEq, Hash)] pub enum SymResString<'a> { /// Contains a `&'a str` - Str(&'a str), + Str(#[doc = "The str"] &'a str), /// Contains a `String` - String(String), + String(#[doc = "The string"] String), } impl Default for SymResString<'_> { #[must_use] @@ -103,9 +103,9 @@ impl<'a> SymResTextPart<'a> { #[derive(Debug, Clone, Eq, PartialEq, Hash)] pub enum SymResTextInfo<'a> { /// Text and color - Text(SymResTextPart<'a>), + Text(#[doc = "Text and color"] SymResTextPart<'a>), /// Text and color (vector) - TextVec(&'a [SymResTextPart<'a>]), + TextVec(#[doc = "Text and color"] &'a [SymResTextPart<'a>]), } impl<'a> SymResTextInfo<'a> {