Skip to content

Make ProgressBar:set_tab_with take &self#685

Merged
djc merged 1 commit intoconsole-rs:mainfrom
jaheba:fix/set_tab_width
Jan 16, 2025
Merged

Make ProgressBar:set_tab_with take &self#685
djc merged 1 commit intoconsole-rs:mainfrom
jaheba:fix/set_tab_width

Conversation

@jaheba
Copy link
Contributor

@jaheba jaheba commented Jan 15, 2025

Currently, ProgressBar:set_tab_with is the only method that requires &mut self.

However, there is no reason that it needs exclusive access, and thus this can be just &self.

@jaheba jaheba force-pushed the fix/set_tab_width branch from 304a75e to 3545ad8 Compare January 15, 2025 21:59
@djc djc merged commit 1a5f606 into console-rs:main Jan 16, 2025
10 checks passed
@djc
Copy link
Member

djc commented Jan 16, 2025

Thanks!

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.

2 participants