Merge branch 'main' into main

This commit is contained in:
Uzair Aftab 2025-12-09 19:38:21 +01:00 committed by GitHub
commit f883723608
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/target
result*
/.direnv

View file

@ -96,12 +96,10 @@ fn print_system_info(
{blue} {cyan} {cyan} {cyan} {blue}Desktop{reset} {desktop}
{blue} {cyan}{blue} {cyan} {blue}Memory{reset} {memory_usage}
{blue} {cyan}{blue} {cyan}󱥎 {blue}Storage (/){reset} {storage}
{cyan} {blue} {cyan} {blue}Colors{reset} {colors}\n"
{cyan} {blue} {cyan} {blue}Colors{reset} {colors}\n\n"
)?;
#[allow(clippy::cast_possible_truncation)]
let len = cursor.position() as usize;
// Direct syscall to avoid stdout buffering allocation
let written = unsafe { libc::write(libc::STDOUT_FILENO, buf.as_ptr().cast(), len) };
if written < 0 {