Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "Build Releases"

on:
workflow_call:
workflow_dispatch:

env:
RUST_BACKTRACE: full
Expand All @@ -15,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-gnu, armv7-unknown-linux-gnueabihf, arm-unknown-linux-gnueabihf]
target: [x86_64-unknown-linux-gnu, armv7-unknown-linux-gnueabihf, arm-unknown-linux-gnueabihf, aarch64-unknown-linux-gnu]

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-gnu, armv7-unknown-linux-gnueabihf, arm-unknown-linux-gnueabihf]
target: [x86_64-unknown-linux-gnu]
steps:
- uses: actions/checkout@v3

Expand Down
8 changes: 4 additions & 4 deletions src/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ mod tests {
let vals = &["-90.0", "-89.9999999999", "-0.0", "0.0", "90.0"];

for val in vals {
assert!(Latitude::parse(*val).is_ok());
assert!(Latitude::parse(val).is_ok());
}
}

Expand All @@ -410,7 +410,7 @@ mod tests {
let vals = &["-180.0", "-90.00000000001", "90.00000001", "100.0"];

for val in vals {
assert!(Latitude::parse(*val).is_err());
assert!(Latitude::parse(val).is_err());
}
}

Expand Down Expand Up @@ -447,7 +447,7 @@ mod tests {
];

for val in vals {
assert!(Longitude::parse(*val).is_ok());
assert!(Longitude::parse(val).is_ok());
}
}

Expand All @@ -456,7 +456,7 @@ mod tests {
let vals = &["-180.1", "180.01"];

for val in vals {
assert!(Longitude::parse(*val).is_err());
assert!(Longitude::parse(val).is_err());
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mod tests {
];

for (expected, arg) in params.iter() {
let date = NaiveDateTime::parse_from_str(*arg, "%FT%T").unwrap();
let date = NaiveDateTime::parse_from_str(arg, "%FT%T").unwrap();
assert_eq!(*expected, format!("{:.5}", date.to_julian_date()));
}
}
Expand Down
14 changes: 7 additions & 7 deletions tests/test_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ fn test_report_custom_location() {
// assert that a report is successfully generated when an arbitrary location is given
let mut cmd = get_base_command();
let report_long = cmd
.args(&["--latitude", "51.0", "--longitude", "4.36", "report"])
.args(["--latitude", "51.0", "--longitude", "4.36", "report"])
.assert();

assert_report(report_long);

let mut cmd = get_base_command();
let report_short = cmd.args(&["-l", "51.0", "-o", "4.36", "report"]).assert();
let report_short = cmd.args(["-l", "51.0", "-o", "4.36", "report"]).assert();

assert_report(report_short)
}
Expand All @@ -79,7 +79,7 @@ fn test_report_custom_timezone() {
// assert that a report is successfully generated when an arbitrary time zone is given
let mut cmd = get_base_command();
let report_long = cmd
.args(&[
.args([
"--latitude",
"51.0",
"--longitude",
Expand All @@ -94,7 +94,7 @@ fn test_report_custom_timezone() {

let mut cmd = get_base_command();
let report_short = cmd
.args(&[
.args([
"--latitude",
"51.0",
"--longitude",
Expand All @@ -114,7 +114,7 @@ fn test_report_json_output() {

// parse the output into a Json Value
let json: serde_json::Value = serde_json::from_slice(
&cmd.args(&[
&cmd.args([
"--date",
"2022-06-11",
"--time-zone",
Expand Down Expand Up @@ -151,7 +151,7 @@ fn test_report_json_output() {
#[test]
fn test_correct_output_small_offset() {
let output = get_base_command()
.args(&[
.args([
"--date",
"2022-07-29",
"--time-zone",
Expand Down Expand Up @@ -188,7 +188,7 @@ fn test_correct_output_small_offset() {
#[test]
fn test_correct_output_large_pos_offset() {
let output = get_base_command()
.args(&[
.args([
"--date",
"2022-07-29",
"--time-zone",
Expand Down
Loading