Skip to content

Commit

Permalink
Move from .write() to .write_all()
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmwagar committed Jul 26, 2021
1 parent 6a97076 commit 99f188f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl AddonManager {
file_path.push(path);

let mut file = tokio::fs::File::create(file_path).await?;
file.write(string.as_bytes()).await?;
file.write_all(string.as_bytes()).await?;
}


Expand Down
16 changes: 8 additions & 8 deletions templates/music/cfg_music.ht
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ class CfgPatches {
};
};

class CfgMusicClasses {
{{#each classes}}
class {{this.class_name}} {
displayName = "{{this.display_name}}";
};
{{/each}}
};

class CfgMusic {
tracks[]={
{{{track_list}}}
Expand All @@ -22,11 +30,3 @@ class CfgMusic {

{{/each}}
};

class CfgMusicClasses {
{{#each classes}}
class {{this.class_name}} {
displayName = "{{this.display_name}}";
};
{{/each}}
};

0 comments on commit 99f188f

Please sign in to comment.