Skip to content

Commit

Permalink
Fix edition (#5)
Browse files Browse the repository at this point in the history
- Update lib.rs
  • Loading branch information
savish authored Dec 23, 2022
1 parent 8185233 commit 75b0dbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
name = "clusters"
version = "0.1.0"
authors = ["Alan K <afksavish@gmail.com>"]
edition = "2021"

[dependencies]
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ pub trait Algorithm<T> {
/// To accomodate the various required parameters of different algorithms,
/// it is expected that this trait is implemented by types that have
/// access to their requirements. For instance, as fields in a struct.
fn cluster(&self, clusterables: &[T]) -> Box<Clustered<T>>;
fn cluster(&self, clusterables: &[T]) -> Box<dyn Clustered<T>>;
}

0 comments on commit 75b0dbd

Please # to comment.