Simplified code
This commit is contained in:
parent
7f8c215227
commit
ccd9039080
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ pub struct CharacterSheet {
|
||||||
pub fn write_sheet(path: &std::path::Path, sheet: &CharacterSheet) -> std::io::Result<()> {
|
pub fn write_sheet(path: &std::path::Path, sheet: &CharacterSheet) -> std::io::Result<()> {
|
||||||
let sheet_str = serde_json::to_string_pretty(&sheet)?;
|
let sheet_str = serde_json::to_string_pretty(&sheet)?;
|
||||||
let mut file = std::fs::File::create(path)?;
|
let mut file = std::fs::File::create(path)?;
|
||||||
write!(file, "{}", sheet_str)
|
write!(file, "{sheet_str}")
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CharacterSheet {
|
impl CharacterSheet {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue