Skip to content

Commit

Permalink
Fix a clippy warning regarding missing panic doc
Browse files Browse the repository at this point in the history
  • Loading branch information
msk committed Dec 21, 2023
1 parent def2c2e commit a8b2419
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable, 1.64.0]
rust: [stable, 1.65.0]
steps:
- name: Install Rust
uses: hecrj/setup-rust-action@v1
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and
this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Requires Rust 1.65 or later.

## [0.6.0] - 2023-08-07

### Changed
Expand Down Expand Up @@ -85,6 +91,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).
- The [OPTICS](https://en.wikipedia.org/wiki/OPTICS_algorithm) clustering
algorithm.

[Unreleased]: https://github.com/petabi/petal-clustering/compare/0.6.0...main
[0.6.0]: https://github.com/petabi/petal-clustering/compare/0.5.1...0.6.0
[0.5.1]: https://github.com/petabi/petal-clustering/compare/0.5.0...0.5.1
[0.5.0]: https://github.com/petabi/petal-clustering/compare/0.4.0...0.5.0
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "petal-clustering"
version = "0.6.0"
edition = "2021"
rust-version = "1.64"
rust-version = "1.65"
description = "A collection of clustering algorithms."
readme = "README.md"
documentation = "https://docs.rs/petal-clustering"
Expand Down
6 changes: 3 additions & 3 deletions src/optics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ where
if clusters.is_empty() {
outliers.push(id);
} else {
let v = clusters
.get_mut(&(clusters.len() - 1))
.expect("cluster map crashed");
let Some(v) = clusters.get_mut(&(clusters.len() - 1)) else {
unreachable!("`clusters` is not empty and its key is a sequence number");
};
v.push(id);
}
} else {
Expand Down

0 comments on commit a8b2419

Please sign in to comment.