Skip to content

Commit 7b9aa71

Browse files
committed
add deprecation notice
1 parent b393ae9 commit 7b9aa71

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zingo-status/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zingo-status"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55

66
[dependencies]

zingo-status/src/confirmation_status.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ 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.
198197
/// Please use a match statement and be careful handling each case.
199198
/// # Examples
200199
///
@@ -205,7 +204,11 @@ impl ConfirmationStatus {
205204
/// let status = ConfirmationStatus::Confirmed(15.into());
206205
/// assert_eq!(status.get_height(), 15.into());
207206
/// ```
208-
pub(crate) fn get_height(&self) -> BlockHeight {
207+
#[deprecated(
208+
note = "Because the value inside the ConfirmationStatus means different things depending on the case, this function is poorly quantified and can lead to unexpected behavior.",
209+
since = "0.1.1"
210+
)]
211+
pub fn get_height(&self) -> BlockHeight {
209212
match self {
210213
Self::Calculated(self_height) => *self_height,
211214
Self::Mempool(self_height) => *self_height,

0 commit comments

Comments
 (0)