Remove redundant comments

There's no need to repeat comments on the fields of a struct within
taskchampion-lib.
This commit is contained in:
Dustin J. Mitchell
2023-06-20 02:14:22 +00:00
committed by Dustin J. Mitchell
parent 1930ea0ad0
commit 7a310fbfc1
5 changed files with 3 additions and 22 deletions

View File

@@ -32,9 +32,7 @@ use taskchampion::chrono::prelude::*;
/// ```
#[repr(C)]
pub struct TCAnnotation {
/// Time the annotation was made. Must be nonzero.
pub entry: libc::time_t,
/// Content of the annotation. Must not be NULL.
pub description: TCString,
}
@@ -96,14 +94,9 @@ impl Default for TCAnnotation {
/// ```
#[repr(C)]
pub struct TCAnnotationList {
/// number of annotations in items
len: libc::size_t,
/// total size of items (internal use only)
capacity: libc::size_t,
/// Array of annotations. These remain owned by the TCAnnotationList instance and will be freed by
/// tc_annotation_list_free. This pointer is never NULL for a valid TCAnnotationList.
items: *mut TCAnnotation,
}

View File

@@ -69,14 +69,9 @@ impl PassByValue for TCKV {
/// ```
#[repr(C)]
pub struct TCKVList {
/// number of key/value pairs in items
len: libc::size_t,
/// total size of items (internal use only)
_capacity: libc::size_t,
/// Array of TCKV's. These remain owned by the TCKVList instance and will be freed by
/// tc_kv_list_free. This pointer is never NULL for a valid TCKVList.
items: *mut TCKV,
}

View File

@@ -394,15 +394,9 @@ where
/// ```
#[repr(C)]
pub struct TCStringList {
/// number of strings in items
len: libc::size_t,
/// total size of items (internal use only)
capacity: libc::size_t,
/// Array of strings. These remain owned by the TCStringList instance and will be freed by
/// tc_string_list_free. This pointer is never NULL for a valid TCStringList, and the
/// *TCStringList at indexes 0..len-1 are not NULL.
items: *mut TCString,
}

View File

@@ -20,11 +20,8 @@ use crate::types::*;
#[repr(C)]
#[derive(Default)]
pub struct TCUda {
/// Namespace of the UDA. For legacy UDAs, this may have a NULL ptr field.
pub ns: TCString,
/// UDA key. Must not be NULL.
pub key: TCString,
/// Content of the UDA. Must not be NULL.
pub value: TCString,
}