Give the formatter the lines it had been asking for
`cargo fmt --all --check` had opinions about three call sites that were already wide enough to need breaking, and the incoming Windows work touches all three files. Split off so the commits after this one contain only the changes they are about.main
parent
937d955937
commit
de5a39c0fb
|
|
@ -722,7 +722,10 @@ fn empty_summary(mode: DeleteMode) -> CleanSummary {
|
|||
fn mode_note(mode: DeleteMode) -> String {
|
||||
match mode {
|
||||
DeleteMode::Trash => {
|
||||
format!("everything goes to the {} first — squid undo puts it back", bin())
|
||||
format!(
|
||||
"everything goes to the {} first — squid undo puts it back",
|
||||
bin()
|
||||
)
|
||||
}
|
||||
DeleteMode::Permanent => format!("permanent deletion: no {}, no undo", bin()),
|
||||
}
|
||||
|
|
@ -1359,7 +1362,11 @@ fn cmd_history(args: HistoryArgs, json: bool) -> Result<i32> {
|
|||
),
|
||||
paint(
|
||||
"90",
|
||||
&format!("{}{}", fit(&mode_label(session), mode_col_width()), failures)
|
||||
&format!(
|
||||
"{}{}",
|
||||
fit(&mode_label(session), mode_col_width()),
|
||||
failures
|
||||
)
|
||||
),
|
||||
paint("90", &shrink(&session.id, 18))
|
||||
);
|
||||
|
|
|
|||
|
|
@ -1686,7 +1686,10 @@ impl App {
|
|||
Some(session) => vec![
|
||||
format!("{} · {}", session.command, session.freed().human_long()),
|
||||
self.strings.t(
|
||||
&format!("{} items will come back from {{bin}}", session.entries.len()),
|
||||
&format!(
|
||||
"{} items will come back from {{bin}}",
|
||||
session.entries.len()
|
||||
),
|
||||
&format!("{} 项将从{{bin}}还原", session.entries.len()),
|
||||
),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1788,7 +1788,10 @@ fn draw_help(frame: &mut Frame, area: Rect, app: &App) {
|
|||
"d".to_string(),
|
||||
s.t("clean what is checked", "清理已勾选项"),
|
||||
),
|
||||
("m".to_string(), s.bin_t("{bin} ⇄ permanent", "{bin} ⇄ 永久")),
|
||||
(
|
||||
"m".to_string(),
|
||||
s.bin_t("{bin} ⇄ permanent", "{bin} ⇄ 永久"),
|
||||
),
|
||||
(
|
||||
"u".to_string(),
|
||||
s.bin_t("restore last {bin} session", "还原上次{bin}会话"),
|
||||
|
|
|
|||
Loading…
Reference in New Issue