Skip to content

Commit

Permalink
Add TODO for later
Browse files Browse the repository at this point in the history
  • Loading branch information
turboladen committed May 7, 2024
1 parent 75d3668 commit a32d936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Added `measurement!()` macro for wrapping `Measurement::try_new().unwrap()`.
- Added `crate::term::Factor` type alias for `u32`.
- Added `crate::term::Exponent` type alias for `i32`.
- Added `crate::Term::as_str()`.
- NAUM-5: Added `crate::Term::as_cow_str()`.
- (Internal) Added constants for many but not all internal `Definition`s.

### Changed
Expand All @@ -46,7 +46,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- `term`
- `ucum_symbol`
- (Internal) Moved `crate::parser` to `crate::unit::parser`.
- (Internal) `Display` implementation for `Unit` now uses `Term::as_str()` logic.
- NAUM-5: (Internal) `Display` implementation for `Unit` now uses `Term::as_cow_str()` logic.

### Deprecated

Expand Down
2 changes: 2 additions & 0 deletions crates/api/src/unit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ impl Unit {
}
}

// TODO: This is silly; remove.
//
impl AsRef<Self> for Unit {
fn as_ref(&self) -> &Self {
self
Expand Down

0 comments on commit a32d936

Please sign in to comment.