style: cargo fmt

This commit is contained in:
jasonwitty
2026-05-17 05:13:09 -07:00
parent 552d2c1375
commit f7fbd648cb
2 changed files with 33 additions and 5 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -euo pipefail
# Sync this repo to the 'gitea' remote as a mirror.
# - Mirrors ALL refs (branches, tags) and prunes removed ones.
# - This makes the Gitea repo match GitHub exactly.
if ! git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo "Error: not inside a git repo" >&2
exit 1
fi
if ! git remote get-url gitea >/dev/null 2>&1; then
echo "Missing 'gitea' remote. Add it with:" >&2
echo " git remote add gitea https://gt.wittyoneoff.com/jason/socktop.git" >&2
exit 1
fi
echo "Fetching from origin (pruning)..."
git fetch origin --prune --tags
echo "Pushing mirror to gitea..."
git push gitea --mirror
echo "Done: Gitea should now match origin (GitHub)."
+7 -5
View File
@@ -41,11 +41,13 @@ impl ModalManager {
]) ])
.split(area); .split(area);
let block = Block::default() let block = Block::default()
.title(Line::from(ICON_WARNING_TITLE).style( .title(
Style::default() Line::from(ICON_WARNING_TITLE).style(
.fg(MODAL_TITLE_FG) Style::default()
.add_modifier(Modifier::BOLD), .fg(MODAL_TITLE_FG)
)) .add_modifier(Modifier::BOLD),
),
)
.borders(Borders::ALL) .borders(Borders::ALL)
.border_style(Style::default().fg(MODAL_BORDER_FG)) .border_style(Style::default().fg(MODAL_BORDER_FG))
.style(Style::default().bg(MODAL_BG).fg(MODAL_FG)); .style(Style::default().bg(MODAL_BG).fg(MODAL_FG));