Skip to content

Commit

Permalink
tick: impl Borrow for TickValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Nouzan committed Oct 3, 2023
1 parent bf05c48 commit ac7f901
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/indicator/src/window/tick_value.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use core::borrow::Borrow;
use core::ops::Deref;

use super::tick::Tick;
Expand Down Expand Up @@ -79,3 +80,9 @@ impl<T> Deref for TickValue<T> {
&self.value
}
}

impl<T> Borrow<T> for TickValue<T> {
fn borrow(&self) -> &T {
&self.value
}
}

0 comments on commit ac7f901

Please sign in to comment.