Format Rust code using rustfmt
This commit is contained in:
committed by
GitHub
parent
9a5c4df2b1
commit
cba6c16414
@@ -13,10 +13,11 @@ impl From<String> for Ending {
|
||||
let id = id_dialogue[0].to_string();
|
||||
|
||||
let dialogue = if id_dialogue.len() > 1 {
|
||||
id_dialogue[1]
|
||||
id_dialogue[1]
|
||||
} else {
|
||||
""
|
||||
}.to_string();
|
||||
}
|
||||
.to_string();
|
||||
|
||||
Ending { id, dialogue }
|
||||
}
|
||||
@@ -46,7 +47,8 @@ fn test_ending_to_string() {
|
||||
Ending {
|
||||
id: "7".to_string(),
|
||||
dialogue: "This is another long ending. So long, farewell, etc.".to_string()
|
||||
}.to_string(),
|
||||
}
|
||||
.to_string(),
|
||||
"END 7\nThis is another long ending. So long, farewell, etc.".to_string()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user