Skip to content

Commit 630e744

Browse files
fix macutil tui warnings
1 parent 9fdb506 commit 630e744

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

target/.rustc_info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"rustc_fingerprint":11293092447381577908,"outputs":{"7971740275564407648":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n/opt/homebrew/Cellar/rust/1.88.0\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"aarch64\"\ntarget_endian=\"little\"\ntarget_env=\"\"\ntarget_family=\"unix\"\ntarget_feature=\"aes\"\ntarget_feature=\"crc\"\ntarget_feature=\"dit\"\ntarget_feature=\"dotprod\"\ntarget_feature=\"dpb\"\ntarget_feature=\"dpb2\"\ntarget_feature=\"fcma\"\ntarget_feature=\"fhm\"\ntarget_feature=\"flagm\"\ntarget_feature=\"fp16\"\ntarget_feature=\"frintts\"\ntarget_feature=\"jsconv\"\ntarget_feature=\"lor\"\ntarget_feature=\"lse\"\ntarget_feature=\"neon\"\ntarget_feature=\"paca\"\ntarget_feature=\"pacg\"\ntarget_feature=\"pan\"\ntarget_feature=\"pmuv3\"\ntarget_feature=\"ras\"\ntarget_feature=\"rcpc\"\ntarget_feature=\"rcpc2\"\ntarget_feature=\"rdm\"\ntarget_feature=\"sb\"\ntarget_feature=\"sha2\"\ntarget_feature=\"sha3\"\ntarget_feature=\"ssbs\"\ntarget_feature=\"vh\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"macos\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"apple\"\nunix\n","stderr":""},"17747080675513052775":{"success":true,"status":"","code":0,"stdout":"rustc 1.88.0 (6b00bc388 2025-06-23) (Homebrew)\nbinary: rustc\ncommit-hash: 6b00bc3880198600130e1cf62b8f8a93494488cc\ncommit-date: 2025-06-23\nhost: aarch64-apple-darwin\nrelease: 1.88.0\nLLVM version: 20.1.7\n","stderr":""}},"successes":{}}
1+
{"rustc_fingerprint":1476785559721132811,"outputs":{"12016735552878863467":{"success":true,"status":"","code":0,"stdout":"rustc 1.88.0 (6b00bc388 2025-06-23) (Homebrew)\nbinary: rustc\ncommit-hash: 6b00bc3880198600130e1cf62b8f8a93494488cc\ncommit-date: 2025-06-23\nhost: aarch64-apple-darwin\nrelease: 1.88.0\nLLVM version: 20.1.7\n","stderr":""},"13822592305234237280":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n/opt/homebrew/Cellar/rust/1.88.0\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"aarch64\"\ntarget_endian=\"little\"\ntarget_env=\"\"\ntarget_family=\"unix\"\ntarget_feature=\"aes\"\ntarget_feature=\"crc\"\ntarget_feature=\"dit\"\ntarget_feature=\"dotprod\"\ntarget_feature=\"dpb\"\ntarget_feature=\"dpb2\"\ntarget_feature=\"fcma\"\ntarget_feature=\"fhm\"\ntarget_feature=\"flagm\"\ntarget_feature=\"fp16\"\ntarget_feature=\"frintts\"\ntarget_feature=\"jsconv\"\ntarget_feature=\"lor\"\ntarget_feature=\"lse\"\ntarget_feature=\"neon\"\ntarget_feature=\"paca\"\ntarget_feature=\"pacg\"\ntarget_feature=\"pan\"\ntarget_feature=\"pmuv3\"\ntarget_feature=\"ras\"\ntarget_feature=\"rcpc\"\ntarget_feature=\"rcpc2\"\ntarget_feature=\"rdm\"\ntarget_feature=\"sb\"\ntarget_feature=\"sha2\"\ntarget_feature=\"sha3\"\ntarget_feature=\"ssbs\"\ntarget_feature=\"vh\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"macos\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"apple\"\nunix\n","stderr":""}},"successes":{}}

tui/src/floating_text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl<'a> FloatingText<'a> {
5454
let src = match command {
5555
Command::Raw(cmd) => Some(cmd.clone()),
5656
Command::LocalFile { file, .. } => std::fs::read_to_string(file)
57-
.map_err(|_| format!("File not found: {:?}", file))
57+
.map_err(|_| format!("File not found: {file:?}"))
5858
.ok(),
5959
Command::None => None,
6060
}

tui/src/running_command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl FloatContent for RunningCommand {
6767
};
6868

6969
let log_path = if let Some(log_path) = &self.log_path {
70-
Line::from(format!(" Log saved: {} ", log_path))
70+
Line::from(format!(" Log saved: {log_path} "))
7171
} else {
7272
Line::from(" Press 'l' to save command log ")
7373
};
@@ -175,7 +175,7 @@ impl RunningCommand {
175175
let mut script = String::new();
176176
for command in commands {
177177
match command {
178-
Command::Raw(prompt) => script.push_str(&format!("{}\n", prompt)),
178+
Command::Raw(prompt) => script.push_str(&format!("{prompt}\n")),
179179
Command::LocalFile {
180180
executable,
181181
args,

tui/src/state.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ impl AppState {
315315
let (keybind_scope, shortcuts) = self.get_keybinds();
316316

317317
let keybinds_block = Block::bordered()
318-
.title(format!(" {} ", keybind_scope))
318+
.title(format!(" {keybind_scope} "))
319319
.border_set(border::ROUNDED);
320320

321321
let keybind_render_width = keybinds_block.inner(area).width;
@@ -411,7 +411,7 @@ impl AppState {
411411
chunks[1].width as usize - left_content.len() - right_content.len(),
412412
);
413413
Line::styled(
414-
format!("{}{}{}", left_content, center_space, right_content),
414+
format!("{left_content}{center_space}{right_content}"),
415415
self.theme.cmd_color(),
416416
)
417417
.patch_style(style)
@@ -426,7 +426,7 @@ impl AppState {
426426
};
427427

428428
let title = if self.multi_select {
429-
&format!("{}[Multi-Select] ", TITLE)
429+
&format!("{TITLE}[Multi-Select] ")
430430
} else {
431431
TITLE
432432
};

0 commit comments

Comments
 (0)