Skip to content

Commit fcc3afe

Browse files
committed
fix line spliting in compact mode. Remove broken phrase
1 parent 5725d33 commit fcc3afe

5 files changed

Lines changed: 10 additions & 15 deletions

File tree

.github/workflows/crates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy to crates.io
33
on:
44
push:
55
tags:
6-
- "c*.*.*"
6+
- "v*.*.*-crates"
77

88
env:
99
CARGO_TERM_COLOR: always

cirno/src/claping.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub enum ShowType {
2020
#[default]
2121
All,
2222
Japan,
23-
Russina,
23+
Russian,
2424
}
2525

2626
impl Display for ShowType {
@@ -31,7 +31,7 @@ impl Display for ShowType {
3131
match self {
3232
ShowType::All => write!(f, "all"),
3333
ShowType::Japan => write!(f, "japan"),
34-
ShowType::Russina => write!(f, "russina"),
34+
ShowType::Russian => write!(f, "russina"),
3535
}
3636
}
3737
}

cirno/src/display.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub fn print_framed_phrase(
5959

6060
format!("{border}\n{space}\n{f}\n{space}\n{border}\n")
6161
}
62-
ShowType::Russina => {
62+
ShowType::Russian => {
6363
let s = phrase.1.bold().italic().purple();
6464

6565
let s_len = s.width();
@@ -88,15 +88,16 @@ pub fn print_minimized_phrase(
8888
ShowType::All => {
8989
let f = phrase.0.italic().bold().blue();
9090
let s = phrase.1.bold().italic().purple();
91-
print!("{f}\n{s}");
91+
println!("{f}");
92+
println!("{s}");
9293
}
9394
ShowType::Japan => {
9495
let f = phrase.0.italic().bold().blue();
95-
print!("{f}");
96+
println!("{f}");
9697
}
97-
ShowType::Russina => {
98+
ShowType::Russian => {
9899
let s = phrase.1.bold().italic().purple();
99-
print!("{s}");
100+
println!("{s}");
100101
}
101102
}
102103
}

cirno_store/src/lib.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub fn get_random_phrase() -> PHRASE {
1717
pub type PHRASE = (&'static str, &'static str);
1818

1919
/// List of [PHRASE]
20-
pub static PHRASES: [PHRASE; 323] = [
20+
pub static PHRASES: [PHRASE; 322] = [
2121
(
2222
"今日もきっといい日になるよ。",
2323
"Сегодня обязательно будет хороший день.",
@@ -491,10 +491,6 @@ pub static PHRASES: [PHRASE; 323] = [
491491
"寝坊しても、世界は終わらない。",
492492
"Даже если проспал — мир не рухнет.",
493493
),
494-
(
495-
"朝のパンの香りって、なんでこん такая счастливая?",
496-
"Почему запах утреннего хлеба такой счастливый?",
497-
),
498494
(
499495
"小さな幸せを集めていこう。",
500496
"Собирай по чуть-чуть маленькие радости.",

rust-toolchain.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)