mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[PR #436] [MERGED] refactor: simplify get_height_of_terminal() and get_width...
#484
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bootandy/dust/pull/436
Author: @muzimuzhi
Created: 8/30/2024
Status: ✅ Merged
Merged: 9/17/2024
Merged by: @bootandy
Base:
master← Head:simplify-get-terminal-wh📝 Commits (1)
c85230arefactor: simplifyget_height_of_terminal()andget_width...📊 Changes
1 file changed (+3 additions, -7 deletions)
View changed files
📝
src/main.rs(+3 -7)📄 Description
The https://github.com/eminence/terminal-size/pull/41 PR mentioned in comments of
get_(height|width)_of_terminal()(added by https://github.com/bootandy/dust/commit/c36ca33fe973657002905bbdb77c639ac3c006f0)https://github.com/bootandy/dust/blob/b63608604a768386506b6736f56092583e8fa5a0/src/main.rs#L83-L91
has been merged and shipped since
terminal-sizev0.2.2. As we're usingterminal-sizev0.2.6 now, it's time to simplify them.https://github.com/bootandy/dust/blob/38c4d237321dcdb4f71f1918ec1cb473ed66655b/Cargo.lock#L766-L768
Not sure if I made it to the most simplified form, as I can hardly speak Rust.
cc @Lucretiel
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.