Skip to content

Commit

Permalink
datetime.rs NFC comment Issue #6
Browse files Browse the repository at this point in the history
Issue #6
  • Loading branch information
jtmoon79 committed Aug 8, 2022
1 parent d78381e commit af46851
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/data/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ lazy_static! {
).collect();
}

// TODO: handle all Unicode whitespace.
// TODO: Issue #6 handle all Unicode whitespace.
// This fn is essentially counteracting an errant call to `std::string:trim`
// within `Local.datetime_from_str`.
// `trim` removes "Unicode Derived Core Property White_Space".
Expand Down Expand Up @@ -1928,6 +1928,8 @@ macro_rules! copy_u8_to_buffer {
//
// TODO: replace `to_byte_array` with rust experimental feature `const_str_as_bytes`
// https://doc.bccnsoft.com/docs/rust-1.36.0-docs-html/unstable-book/library-features/const-str-as-bytes.html#const_str_as_bytes
// https://github.com/rust-lang/rust/issues/57563
//

const MONTH_01_B_l: &[u8] = &to_byte_array!("january");
const MONTH_01_b_l: &[u8] = &to_byte_array!("jan");
Expand Down

0 comments on commit af46851

Please sign in to comment.