Skip to content

Commit

Permalink
Clippy fixes (#114)
Browse files Browse the repository at this point in the history
* fixed warnings

* fixed warnings
  • Loading branch information
bwsw authored Jun 13, 2024
1 parent 688b53f commit 9c40c85
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ repository = "https://github.com/insight-platform/Similari"
readme = "README.md"
keywords = ["machine-learning", "similarity", "tracking", "SORT", "DeepSORT"]
categories = ["algorithms", "data-structures", "computer-vision", "science"]
version = "0.26.10"
version = "0.26.11"
edition = "2021"
license="Apache-2.0"
license = "Apache-2.0"
rust-version = "1.66"

[lib]
Expand All @@ -18,7 +18,7 @@ name = "similari"

[features]
default = ["python"]
python = ["dep:pyo3", "dep:pyo3-build-config","dep:pyo3-log"]
python = ["dep:pyo3", "dep:pyo3-build-config", "dep:pyo3-log"]

[dependencies]
itertools = "0.12"
Expand Down
2 changes: 1 addition & 1 deletion src/track/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub type StoreMutexGuard<'a, TA, M, FA, N> = MutexGuard<'a, HashMap<u64, Track<T
pub type OwnedMergeResult<TA, M, FA, N> = Result<Option<Track<TA, M, FA, N>>>;

#[derive(Debug)]
pub(crate) enum Results<OA>
pub enum Results<OA>
where
OA: ObservationAttributes,
{
Expand Down
3 changes: 3 additions & 0 deletions src/track/store/track_distance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::track::{ObservationAttributes, ObservationMetricOk};
use crossbeam::channel::Receiver;
use std::vec::IntoIter;

/// Represents the response from the track distance computation.
///
trait TrackDistanceResponse<OA>: IntoIterator
where
Expand All @@ -24,6 +25,7 @@ where
fn channel(&self) -> &Receiver<Results<OA>>;
}

/// Represents the ok response from the track distance computation.
///
pub struct TrackDistanceOk<OA>
where
Expand Down Expand Up @@ -64,6 +66,7 @@ where
}
}

/// Represents the error response from the track distance computation.
///
pub struct TrackDistanceErr<OA>
where
Expand Down
2 changes: 1 addition & 1 deletion src/trackers/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ pub mod python {
#[pyclass]
#[pyo3(name = "VotingType")]
#[derive(Default, Debug, Clone, Copy)]
pub struct PyVotingType(pub(crate) VotingType);
pub struct PyVotingType(pub VotingType);

#[pymethods]
impl PyVotingType {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/point.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub struct Point2D(f32, f32);
pub struct Point2D(pub f32, pub f32);

0 comments on commit 9c40c85

Please sign in to comment.