File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Deploy to crates.io
33on :
44 push :
55 tags :
6- - " c *.*.*"
6+ - " v *.*.*-crates "
77
88env :
99 CARGO_TERM_COLOR : always
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pub enum ShowType {
2020 #[ default]
2121 All ,
2222 Japan ,
23- Russina ,
23+ Russian ,
2424}
2525
2626impl 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub fn get_random_phrase() -> PHRASE {
1717pub 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 "Собирай по чуть-чуть маленькие радости." ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments