Skip to content

Commit

Permalink
fmt: since we're not longer on nightly, update how rustfmt is used
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Nov 10, 2023
1 parent fae1dc8 commit fae14cc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ build *args:
_lbuild:
cargo lbuild --all

# runs rustfmt with nightly to enable all its features
fmt:
rustup run nightly cargo fmt

# run `i3stat` in the terminal and interact with it
dev *args: _lbuild
cd ./scripts/node && RUST_BACKTRACE=1 RUST_LOG=i3stat=trace yarn dev "$@"
Expand Down
11 changes: 9 additions & 2 deletions tests/i3/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ use serde_json::Value;
use self::util::x_click;
use crate::i3::util::MouseButton;
use crate::util::{
find_object_containing, get_current_exe, get_exe, get_fakeroot_lib, get_faketime_lib,
wait_for_file, LogOnDropChild, Test, FAKE_TIME,
find_object_containing,
get_current_exe,
get_exe,
get_fakeroot_lib,
get_faketime_lib,
wait_for_file,
LogOnDropChild,
Test,
FAKE_TIME,
};

// start nested x server displays at 10
Expand Down
7 changes: 6 additions & 1 deletion tests/spawn/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ use serde_json::Value;
use timeout_readwrite::{TimeoutReadExt, TimeoutReader};

use crate::util::{
get_current_exe, get_fakeroot_lib, get_faketime_lib, LogOnDropChild, Test, FAKE_TIME,
get_current_exe,
get_fakeroot_lib,
get_faketime_lib,
LogOnDropChild,
Test,
FAKE_TIME,
};

/// Convenience struct for running assertions on and communicating with a running instance of the program
Expand Down

0 comments on commit fae14cc

Please sign in to comment.