Format Rust code using rustfmt
This commit is contained in:
committed by
GitHub
parent
9a5c4df2b1
commit
cba6c16414
@@ -25,7 +25,10 @@ impl ToString for Dialogue {
|
||||
fn test_dialogue_from_string() {
|
||||
assert_eq!(
|
||||
Dialogue::from("DLG h\nhello\ngoodbye".to_string()),
|
||||
Dialogue { id: "h".to_string(), contents: "hello\ngoodbye".to_string()}
|
||||
Dialogue {
|
||||
id: "h".to_string(),
|
||||
contents: "hello\ngoodbye".to_string()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@@ -35,7 +38,8 @@ fn test_dialogue_to_string() {
|
||||
Dialogue {
|
||||
id: "y".to_string(),
|
||||
contents: "This is a bit of dialogue,\nblah blah\nblah blah".to_string()
|
||||
}.to_string(),
|
||||
}
|
||||
.to_string(),
|
||||
"DLG y\nThis is a bit of dialogue,\nblah blah\nblah blah".to_string()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user