Skip to content

Commit

Permalink
release: 0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed Oct 5, 2023
2 parents c194568 + 869bd43 commit 25fbdc9
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@



## [0.5.1](https://github.com/Blobfolio/brunch/releases/tag/v0.5.1) - 2023-10-05

### Changed

* Minor code lints and cleanup



## [0.5.0](https://github.com/Blobfolio/brunch/releases/tag/v0.5.0) - 2023-06-01

### Changed
Expand Down
10 changes: 5 additions & 5 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Project Dependencies
Package: brunch
Version: 0.5.0
Generated: 2023-06-01 19:50:46 UTC
Version: 0.5.1
Generated: 2023-10-05 19:30:20 UTC

| Package | Version | Author(s) | License |
| ---- | ---- | ---- | ---- |
| [dactyl](https://github.com/Blobfolio/dactyl) | 0.5.0 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [num-traits](https://github.com/rust-num/num-traits) | 0.2.15 | The Rust Project Developers | Apache-2.0 or MIT |
| [unicode-width](https://github.com/unicode-rs/unicode-width) | 0.1.10 | [kwantam](mailto:[email protected]) and [Manish Goregaokar](mailto:[email protected]) | Apache-2.0 or MIT |
| [dactyl](https://github.com/Blobfolio/dactyl) | 0.5.2 | [Blobfolio, LLC.](mailto:[email protected]) | WTFPL |
| [num-traits](https://github.com/rust-num/num-traits) | 0.2.16 | The Rust Project Developers | Apache-2.0 or MIT |
| [unicode-width](https://github.com/unicode-rs/unicode-width) | 0.1.11 | [kwantam](mailto:[email protected]) and [Manish Goregaokar](mailto:[email protected]) | Apache-2.0 or MIT |
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "brunch"
version = "0.5.0"
version = "0.5.1"
authors = ["Blobfolio, LLC. <[email protected]>"]
edition = "2021"
rust-version = "1.70"
Expand Down
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ version:
# Set the release version!
just _version "{{ justfile_directory() }}" "$_ver2"
just credits
# Set version for real.
Expand Down
8 changes: 4 additions & 4 deletions src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,22 +694,22 @@ fn format_name(mut name: Vec<char>, names: &[Vec<char>]) -> String {

if pos == 0 {
"\x1b[94m".chars()
.chain(name.into_iter())
.chain(name)
.chain("\x1b[0m".chars())
.collect()
}
else if pos == len {
"\x1b[34m".chars()
.chain(name.into_iter())
.chain(name)
.chain("\x1b[0m".chars())
.collect()
}
else {
let b = name.split_off(pos);
"\x1b[34m".chars()
.chain(name.into_iter())
.chain(name)
.chain("\x1b[94m".chars())
.chain(b.into_iter())
.chain(b)
.chain("\x1b[0m".chars())
.collect()
}
Expand Down
4 changes: 2 additions & 2 deletions src/stats/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl History {
pub(crate) fn save(&self) {
if let Some(mut f) = history_path().and_then(|f| File::create(f).ok()) {
let out = serialize(&self.0);
let _res = f.write_all(&out).and_then(|_| f.flush());
let _res = f.write_all(&out).and_then(|()| f.flush());
}
}
}
Expand Down Expand Up @@ -212,7 +212,7 @@ fn serialize(history: &HistoryData) -> Vec<u8> {
out.extend_from_slice(MAGIC);

// Write each benchmark entry.
for (lbl, s) in history.iter() {
for (lbl, s) in history {
// We panic on long names so this should never fail, but just in case,
// let's check.
if let Ok(len) = u16::try_from(lbl.len()) {
Expand Down

0 comments on commit 25fbdc9

Please sign in to comment.