diff --git a/CHANGELOG.md b/CHANGELOG.md index a58e85a..7bc4ca1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 2.0.1 + - Add support for precision in `Display` implementations. ## v2.0.0 diff --git a/Cargo.lock b/Cargo.lock index 6aff99f..8f3bd33 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -31,7 +31,7 @@ checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" [[package]] name = "bytesize" -version = "2.0.0" +version = "2.0.1" dependencies = [ "arbitrary", "divan", diff --git a/Cargo.toml b/Cargo.toml index deac1e5..054096f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "bytesize" description = "Semantic wrapper for byte count representations" -version = "2.0.0" +version = "2.0.1" authors = [ "Hyunsik Choi ", "MrCroxx ", diff --git a/README.md b/README.md index 5d9795c..b00a7e6 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ [![crates.io](https://img.shields.io/crates/v/bytesize?label=latest)](https://crates.io/crates/bytesize) -[![Documentation](https://docs.rs/bytesize/badge.svg?version=2.0.0)](https://docs.rs/bytesize/2.0.0) +[![Documentation](https://docs.rs/bytesize/badge.svg?version=2.0.1)](https://docs.rs/bytesize/2.0.1) ![Version](https://img.shields.io/badge/rustc-1.70+-ab6000.svg) ![Apache 2.0 licensed](https://img.shields.io/crates/l/bytesize.svg)
-[![Dependency Status](https://deps.rs/crate/bytesize/2.0.0/status.svg)](https://deps.rs/crate/bytesize/2.0.0) +[![Dependency Status](https://deps.rs/crate/bytesize/2.0.1/status.svg)](https://deps.rs/crate/bytesize/2.0.1) [![Download](https://img.shields.io/crates/d/bytesize.svg)](https://crates.io/crates/bytesize) diff --git a/ensure-no-std/Cargo.lock b/ensure-no-std/Cargo.lock index d43290f..8e1e686 100644 --- a/ensure-no-std/Cargo.lock +++ b/ensure-no-std/Cargo.lock @@ -4,7 +4,7 @@ version = 4 [[package]] name = "bytesize" -version = "2.0.0" +version = "2.0.1" [[package]] name = "ensure-no-std" diff --git a/src/lib.rs b/src/lib.rs index d82d1ce..8e3709c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -238,7 +238,7 @@ impl fmt::Display for ByteSize { if f.width().is_none() { // allocation-free fast path for when no formatting options are specified - display.fmt(f) + fmt::Display::fmt(&display, f) } else { f.pad(&display.to_string()) }