Format Rust code using rustfmt

This commit is contained in:
github-actions[bot]
2020-04-18 15:58:30 +00:00
committed by GitHub
parent 9a5c4df2b1
commit cba6c16414
18 changed files with 956 additions and 394 deletions

View File

@@ -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()
);
}