style(rust): formatted native and shell sources

This commit is contained in:
can1357
2026-07-28 13:02:15 +02:00
parent b550858265
commit e5bdfc556d
3 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -635,7 +635,8 @@ fn matches_key_inner(bytes: &[u8], key_id: &str, kitty_protocol_active: bool) ->
if let Some(base) = parsed_base
&& base == codepoint
{
let is_ascii_letter = u8::try_from(parsed_codepoint).is_ok_and(|b| b.is_ascii_alphabetic());
let is_ascii_letter =
u8::try_from(parsed_codepoint).is_ok_and(|b| b.is_ascii_alphabetic());
let is_known_symbol = is_symbol_key(parsed_codepoint);
if !is_ascii_letter && !is_known_symbol {
return true;
+4 -1
View File
@@ -410,7 +410,10 @@ fn fill_repeat_bands_rgb(pixels: &mut [u8], width: usize, height: usize, grid: &
for copy in 1..grid.repeat {
let band_top = (row * grid.repeat + copy) * grid.cell_h;
for y in band_top..(band_top + grid.cell_h).min(height) {
for px in pixels[y * width * 3..(y + 1) * width * 3].as_chunks_mut::<3>().0 {
for px in pixels[y * width * 3..(y + 1) * width * 3]
.as_chunks_mut::<3>()
.0
{
px.copy_from_slice(&band);
}
}
+2 -2
View File
@@ -3935,8 +3935,8 @@ replace = [{ pattern = "^.+$", replacement = "PWD" }]
/// A segment that carries a file redirect is still segmented, and the brush
/// `Display` reconstruction the runner executes must round-trip through
/// brush's own parser **without losing the redirect**. `echo hidden >/dev/null`
/// suppresses its own stdout: if the reconstruction dropped the
/// brush's own parser **without losing the redirect**. `echo hidden
/// >/dev/null` suppresses its own stdout: if the reconstruction dropped the
/// redirect, `hidden` would leak into the captured output. Proves the
/// reconstruction path is semantically sound for the redirect-bearing
/// shapes the per-stage whitelist accepts (not just syntactically