Skip to content

Commit

Permalink
Minor fixes (#16)
Browse files Browse the repository at this point in the history
* shadow-rs 0.38

* Fix warnings on Linux/macOS
  • Loading branch information
simonask authored Jan 23, 2025
1 parent b109fbd commit 05a99a9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions werk-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ line-span = "0.1.5"
num_cpus = "1.16.0"
owo-colors = "4.1.0"
parking_lot.workspace = true
shadow-rs = "0.37.0"
shadow-rs = "0.38.0"
smol.workspace = true
thiserror.workspace = true
toml_edit.workspace = true
Expand All @@ -47,4 +47,4 @@ windows-sys = { version = "0.59.0", features = [


[build-dependencies]
shadow-rs = "0.37.0"
shadow-rs = "0.38.0"
3 changes: 2 additions & 1 deletion werk-cli/render/ansi/term_width.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use anstream::stream::IsTerminal;

#[allow(dead_code)]
pub enum TtyWidth {
NoTty,
Guess(usize),
Expand Down Expand Up @@ -42,7 +43,7 @@ mod imp {
let mut winsize: libc::winsize = std::mem::zeroed();
// The .into() here is needed for FreeBSD which defines TIOCGWINSZ
// as c_uint but ioctl wants c_ulong.
if libc::ioctl(libc::STDERR_FILENO, libc::TIOCGWINSZ.into(), &mut winsize) < 0 {
if libc::ioctl(libc::STDERR_FILENO, libc::TIOCGWINSZ, &mut winsize) < 0 {
return TtyWidth::NoTty;
}
if winsize.ws_col > 0 {
Expand Down

0 comments on commit 05a99a9

Please sign in to comment.