Skip to content

Commit d2ac87b

Browse files
authored
chore: prepare release v2.0.1 (#85)
1 parent 0a54210 commit d2ac87b

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
## 2.0.1
6+
57
- Add support for precision in `Display` implementations.
68

79
## v2.0.0

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "bytesize"
33
description = "Semantic wrapper for byte count representations"
4-
version = "2.0.0"
4+
version = "2.0.1"
55
authors = [
66
"Hyunsik Choi <[email protected]>",
77
"MrCroxx <[email protected]>",

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
<!-- prettier-ignore-start -->
44

55
[![crates.io](https://img.shields.io/crates/v/bytesize?label=latest)](https://crates.io/crates/bytesize)
6-
[![Documentation](https://docs.rs/bytesize/badge.svg?version=2.0.0)](https://docs.rs/bytesize/2.0.0)
6+
[![Documentation](https://docs.rs/bytesize/badge.svg?version=2.0.1)](https://docs.rs/bytesize/2.0.1)
77
![Version](https://img.shields.io/badge/rustc-1.70+-ab6000.svg)
88
![Apache 2.0 licensed](https://img.shields.io/crates/l/bytesize.svg)
99
<br />
10-
[![Dependency Status](https://deps.rs/crate/bytesize/2.0.0/status.svg)](https://deps.rs/crate/bytesize/2.0.0)
10+
[![Dependency Status](https://deps.rs/crate/bytesize/2.0.1/status.svg)](https://deps.rs/crate/bytesize/2.0.1)
1111
[![Download](https://img.shields.io/crates/d/bytesize.svg)](https://crates.io/crates/bytesize)
1212

1313
<!-- prettier-ignore-end -->

ensure-no-std/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ impl fmt::Display for ByteSize {
238238

239239
if f.width().is_none() {
240240
// allocation-free fast path for when no formatting options are specified
241-
display.fmt(f)
241+
fmt::Display::fmt(&display, f)
242242
} else {
243243
f.pad(&display.to_string())
244244
}

0 commit comments

Comments
 (0)