Skip to content

Commit

Permalink
Fix warnings with newer rustc 1.79.0 (#50)
Browse files Browse the repository at this point in the history
* Fixes unhandled zero volume

* Fix warnings.

---------

Co-authored-by: taovonqi <seedaoqi@outlook.com>
  • Loading branch information
TaoVonQi and taovonqi authored Jul 28, 2024
1 parent 5030e23 commit 35da020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/indicator/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl fmt::Debug for IndicatorResult {
.signals
.iter()
.take(self.length.1 as usize)
.map(std::string::ToString::to_string)
.map(ToString::to_string)
.collect();
write!(
f,
Expand Down
2 changes: 1 addition & 1 deletion src/methods/past.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ where
}
}

impl<T: Clone + std::fmt::Debug> Buffered<<Self as Method>::Output> for Past<T> {
impl<T: Clone + fmt::Debug> Buffered<<Self as Method>::Output> for Past<T> {
fn get(&self, index: usize) -> Option<<Self as Method>::Output> {
let index = index.try_into().ok()?;
self.0.get(index).cloned()
Expand Down

0 comments on commit 35da020

Please sign in to comment.