diff --git a/README.md b/README.md index 6b79b0d..4052cfc 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,9 @@ To run the Space-Track example, you must first assign your Space-Track.org crede This crate supports `no_std` environments. TLE parsing and SGP4 propagation do not require `alloc` either. We use [num-traits](https://docs.rs/num-traits/latest/num_traits/) with [libm](https://docs.rs/libm/latest/libm/) for floating point functions when `std` is not available. -All serde-related features, in particular OMM parsing, require `alloc`. +See https://github.com/neuromorphicsystems/sgp4-no-std for a minimal no-std example that runs on Docker Linux x86_64. + +All serde-related features, such as OMM parsing, require `alloc`. ## Benchmark diff --git a/src/tle.rs b/src/tle.rs index b1e694b..5ee54eb 100644 --- a/src/tle.rs +++ b/src/tle.rs @@ -175,7 +175,7 @@ impl DecimalPointAssumedRepresentation for [u8] { end, }); } - let mut raw_buffer = [0_u8; 16]; + let mut raw_buffer = [0u8; 16]; let length; if trimmed[0] == b'-' { if trimmed.len() < 2 || trimmed.len() + 1 > raw_buffer.len() {