Skip to content

Commit

Permalink
Remove incorrect return info (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredr authored Jul 27, 2022
1 parent 43287e5 commit 64d5c5a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions metrics/src/handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ use crate::IntoF64;
/// A counter handler.
pub trait CounterFn {
/// Increments the counter by the given amount.
///
/// Returns the previous value.
fn increment(&self, value: u64);

/// Sets the counter to at least the given amount.
Expand All @@ -20,26 +18,18 @@ pub trait CounterFn {
///
/// This method must cope with those cases. An example of doing so atomically can be found in
/// `AtomicCounter`.
///
/// Returns the previous value.
fn absolute(&self, value: u64);
}

/// A gauge handler.
pub trait GaugeFn {
/// Increments the gauge by the given amount.
///
/// Returns the previous value.
fn increment(&self, value: f64);

/// Decrements the gauge by the given amount.
///
/// Returns the previous value.
fn decrement(&self, value: f64);

/// Sets the gauge to the given amount.
///
/// Returns the previous value.
fn set(&self, value: f64);
}

Expand Down

0 comments on commit 64d5c5a

Please sign in to comment.