Skip to content

Commit 501dbdf

Browse files
authored
Merge pull request #5 from Radiance-Platform/test
Test
2 parents 436fef4 + 46557ed commit 501dbdf

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/game/config_parsers/characters.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn process_config_serde(characters: &mut HashMap<String, Character>, config_
1616
get_character_from_data( characters, parsed);
1717
}
1818
Err(err) =>{
19-
println!("{}", err);
19+
eprintln!("{}", err);
2020
}
2121
}
2222
Ok(())

src/game/config_parsers/dialogs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ use crate::game::dialogs::Dialog;
55

66
pub fn process_config_serde(dialogs: &mut HashMap<String, Dialog>, config_path: &Path) -> Result<(), serde_yaml::Error>{
77
let file_contents = fs::read_to_string(config_path).unwrap();
8-
let doc = serde_yaml::from_str::<Vec::<Dialog>>(&file_contents);
8+
let doc = serde_yaml::from_str::<Vec<Dialog>>(&file_contents);
99
match doc {
1010
Ok(parsed) =>{
1111
for dialog in parsed {
1212
dialogs.insert(dialog.id.clone(), dialog.clone());
1313
}
1414
}
1515
Err(err) =>{
16-
println!("{}", err);
16+
eprintln!("{}", err);
1717
}
1818
}
1919
Ok(())

src/game/config_parsers/maps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn process_config_serde(map_item_data: &mut Vec<MapItemData>, config_path: &
3434
map_item_data.push(parsed);
3535
}
3636
Err(err) =>{
37-
println!("{}",err);
37+
eprintln!("{}",err);
3838
}
3939
}
4040
Ok(())

tests/integration_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mod tests {
1717
fn test_good_room() {
1818
// This assert would fire and test will fail.
1919
// Please note, that private functions can be tested too!
20-
// let mut test_rooms = Vec::<MapItemData>::new();
20+
//let mut test_rooms = Vec::<MapItemData>::new();
2121
}
2222

2323
// Lets us use ? to return quicker when failing

0 commit comments

Comments
 (0)