Skip to content

Commit b393ae9

Browse files
committed
added doc-comment warning about an unqualified function
1 parent 56383d5 commit b393ae9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zingo-status/src/confirmation_status.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ impl ConfirmationStatus {
194194
}
195195
}
196196

197+
/// Because the value inside the ConfirmationStatus means different things depending on the case, this function is poorly quantified and can lead to unexpected behavior.
198+
/// Please use a match statement and be careful handling each case.
197199
/// # Examples
198200
///
199201
/// ```
@@ -203,7 +205,7 @@ impl ConfirmationStatus {
203205
/// let status = ConfirmationStatus::Confirmed(15.into());
204206
/// assert_eq!(status.get_height(), 15.into());
205207
/// ```
206-
pub fn get_height(&self) -> BlockHeight {
208+
pub(crate) fn get_height(&self) -> BlockHeight {
207209
match self {
208210
Self::Calculated(self_height) => *self_height,
209211
Self::Mempool(self_height) => *self_height,

0 commit comments

Comments
 (0)