Skip to content

Change OnceCell to OnceLock in TabExpandedString#694

Merged
djc merged 2 commits intoconsole-rs:mainfrom
tgross35:progressstyle-sync
Jan 28, 2025
Merged

Change OnceCell to OnceLock in TabExpandedString#694
djc merged 2 commits intoconsole-rs:mainfrom
tgross35:progressstyle-sync

Conversation

@tgross35
Copy link
Copy Markdown
Contributor

The change at 1 stores some data in a OnceCell, which made ProgressStyle no longer Sync. Fix this by changing the OnceCell to a OnceLock, and add a static test that all relevant public types are Send and Sync.

The change at [1] stores some data in a `OnceCell`, which made
`ProgressStyle` no longer `Sync`. Fix this by changing the `OnceCell` to
a `OnceLock`, and add a static test that all relevant public types are
`Send` and `Sync`.

[1]: console-rs#684
@tgross35 tgross35 mentioned this pull request Jan 28, 2025
@djc
Copy link
Copy Markdown
Member

djc commented Jan 28, 2025

Mind adding a commit that bumps the version number to 0.17.11?

@tgross35
Copy link
Copy Markdown
Contributor Author

Sure, all set.

@djc djc merged commit fe59003 into console-rs:main Jan 28, 2025
@djc
Copy link
Copy Markdown
Member

djc commented Jan 28, 2025

  • Published indicatif v0.17.11 at registry crates-io
  • [new tag] 0.17.11 -> 0.17.11
  • Release notes

@woodruffw
Copy link
Copy Markdown

Thanks a ton for fixing this so quickly! Out of curiosity, when should the release land on Crates.io?

@djc
Copy link
Copy Markdown
Member

djc commented Jan 28, 2025

Huh, looks like I managed to confuse myself with this morning's release! Published 0.17.11 now.

@woodruffw
Copy link
Copy Markdown

Thanks a ton!

@tgross35
Copy link
Copy Markdown
Contributor Author

Thanks for the quick review!

@tgross35 tgross35 deleted the progressstyle-sync branch January 28, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants