Skip to content

Commit

Permalink
improve doc, remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Nov 26, 2023
1 parent 256808b commit 7e45749
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chinese-lunisolar-calendar"
version = "0.1.26"
version = "0.1.27"
authors = ["Magic Len <len@magiclen.org>"]
edition = "2021"
rust-version = "1.60"
Expand All @@ -24,3 +24,7 @@ assert-eq-float = "0.1"
default = ["ba-zi-weight"]

ba-zi-weight = []

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ assert_eq!(4.3, lunisolar_date.get_ba_zi_weight_by_time(NaiveTime::from_hms(15,
*/

#![allow(deprecated)] // wait for chrono 0.5
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

pub extern crate chrono;

Expand Down
2 changes: 0 additions & 2 deletions src/lunisolar_date.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,6 @@ impl LunisolarDate {
) -> u16 {
let mut n = u16::from(lunar_day.to_u8());

let lunisolar_year = lunisolar_year;

let month = lunar_month.to_u8();

if lunar_month.is_leap_month() {
Expand Down

0 comments on commit 7e45749

Please sign in to comment.