diff --git a/justfile b/justfile index e3999d0..3945fae 100644 --- a/justfile +++ b/justfile @@ -59,6 +59,13 @@ init: clean: output-clean cargo clean +rust-cache: + cargo check --all + cargo build --all + cargo test --all + cargo doc --all + cargo clippy --all + init-python: if [ ! -d "wordlist/venv" ]; then python3 -m virtualenv wordlist/venv -p "$(which python3)"; fi; export OSTYPE=linux-gnu && . wordlist/venv/bin/activate export OSTYPE=linux-gnu && . wordlist/venv/bin/activate && pip install -r wordlist/requirements.txt && python -c 'import nltk; nltk.download('wordnet')' diff --git a/src/conversions/wrap.rs b/src/conversions/wrap.rs index c6bcd3f..a736ffe 100644 --- a/src/conversions/wrap.rs +++ b/src/conversions/wrap.rs @@ -3,7 +3,7 @@ /// /// For the latitude values, we need to flip the longitude whenever the latitude crosses a pole. /// -/// Description and original source was ported from https://gist.github.com/missinglink/d0a085188a8eab2ca66db385bb7c023a to rust +/// Description and original source was ported from to rust pub fn wrap_latlon(mut lat: f64, mut lon: f64) -> (f64, f64) { let quadrant = ((lat.abs() / 90_f64).floor() % 4_f64) as i8; let pole = if lat > 0_f64 { 90_f64 } else { -90_f64 }; diff --git a/xpin-wasm/src/lib.rs b/xpin-wasm/src/lib.rs index c23c68e..2229871 100644 --- a/xpin-wasm/src/lib.rs +++ b/xpin-wasm/src/lib.rs @@ -144,7 +144,7 @@ impl TryFrom for EncodedAddress { #[cfg(test)] mod tests { - use super::*; + // use super::*; #[test] fn test_general() {