Skip to content

Commit 19e21f8

Browse files
committed
docs for annotate()
1 parent a14354a commit 19e21f8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ata/data/attr/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ impl SmartAttribute {
3838
pub fn self_preserving(&self) -> bool { self.flags() & (1<<5) != 0 }
3939
pub fn misc_flags(&self) -> u16 { self.flags() & (!0b11_1111) }
4040

41+
/// Annotate attribute using optional [drivedb](../../../drivedb/index.html) entry.
4142
#[cfg(feature = "drivedb-parser")]
4243
pub fn annotate(&mut self, meta: &Option<drivedb::DriveMeta>) {
4344
let id = self.id;
@@ -103,6 +104,7 @@ all in addition to hosting the annotate() function as a method.
103104

104105
#[cfg(feature = "drivedb-parser")]
105106
pub trait SmartAttributes {
107+
/// Annotate attributes using optional [drivedb](../../../drivedb/index.html) entry.
106108
fn annotate(&mut self, meta: &Option<drivedb::DriveMeta>);
107109
}
108110

0 commit comments

Comments
 (0)