Skip to content

Commit 43d60d1

Browse files
authored
195 bug fix (#196)
* fix error thrown by unused parens in new rust toolchain * doc update * version bump * lint cleanup
1 parent 917770b commit 43d60d1

5 files changed

Lines changed: 14 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v1.1.2]
9+
10+
### Fixed
11+
- Unused parens removed from kepler.rs
12+
813
## [v1.1.1]
914

1015
### Added
1116
- Add in support for MPC Extended Packed format
12-
17+
1318
## [v1.1.0]
1419

1520
Announcement: Author of Kete (Dar Dahlen) has left IPAC Caltech to begin a PhD at

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
[package]
33
name = "_core"
4-
version = "1.1.0"
4+
version = "1.1.2"
55
edition = "2021"
66
readme = "README.md"
77
license = "BSD-3-Clause"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "kete"
3-
version = "1.1.0"
3+
version = "1.1.2"
44
description = "Kete Asteroid Survey Tools"
55
readme = "README.md"
66
authors = [

src/kete_core/src/propagation/kepler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub fn compute_eccentric_anomaly(ecc: f64, mean_anom: f64, peri_dist: f64) -> Ke
5151
}
5252
ecc => {
5353
// Hyperbolic
54-
let f = |ecc_anom: f64| (ecc * ecc_anom.sinh() - ecc_anom - mean_anom);
54+
let f = |ecc_anom: f64| ecc * ecc_anom.sinh() - ecc_anom - mean_anom;
5555
let d = |ecc_anom: f64| -1.0 + ecc * ecc_anom.cosh();
5656
let guess = (mean_anom / ecc).asinh();
5757
Ok(newton_raphson(f, d, guess, 1e-11)?)

src/kete_core/src/spice/spk_segments.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ struct Type2RecordView<'a> {
334334

335335
impl SpkSegmentType2 {
336336
#[inline(always)]
337-
fn get_record(&self, idx: usize) -> Type2RecordView {
337+
fn get_record(&self, idx: usize) -> Type2RecordView<'_> {
338338
unsafe {
339339
let vals = self
340340
.array
@@ -426,7 +426,7 @@ struct Type3RecordView<'a> {
426426

427427
impl SpkSegmentType3 {
428428
#[inline(always)]
429-
fn get_record(&self, idx: usize) -> Type3RecordView {
429+
fn get_record(&self, idx: usize) -> Type3RecordView<'_> {
430430
unsafe {
431431
let vals = self
432432
.array
@@ -526,7 +526,7 @@ struct Type9RecordView<'a> {
526526

527527
impl SpkSegmentType9 {
528528
#[inline(always)]
529-
fn get_record(&self, idx: usize) -> Type9RecordView {
529+
fn get_record(&self, idx: usize) -> Type9RecordView<'_> {
530530
unsafe {
531531
let rec = self.array.data.get_unchecked(idx * 6..(idx + 1) * 6);
532532
Type9RecordView {
@@ -741,7 +741,7 @@ struct Type13RecordView<'a> {
741741

742742
impl SpkSegmentType13 {
743743
#[inline(always)]
744-
fn get_record(&self, idx: usize) -> Type13RecordView {
744+
fn get_record(&self, idx: usize) -> Type13RecordView<'_> {
745745
unsafe {
746746
let rec = self.array.data.get_unchecked(idx * 6..(idx + 1) * 6);
747747
Type13RecordView {
@@ -853,7 +853,7 @@ struct Type18RecordView<'a> {
853853

854854
impl SpkSegmentType18 {
855855
#[inline(always)]
856-
fn get_record(&self, idx: usize) -> Type18RecordView {
856+
fn get_record(&self, idx: usize) -> Type18RecordView<'_> {
857857
unsafe {
858858
let rec = self
859859
.array

0 commit comments

Comments
 (0)