Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from nonelement/example-fix
Browse files Browse the repository at this point in the history
Added create call to Config::write()
  • Loading branch information
gifnksm committed Dec 23, 2015
2 parents 72ebfb5 + 1302610 commit eda148e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tweet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Config {
}

pub fn write(&self, path_file: &Path) {
let mut file = match OpenOptions::new().write(true).open(path_file) {
let mut file = match OpenOptions::new().write(true).create(true).open(path_file) {
Ok(f) => f,
Err(e) => panic!("{}", e),
};
Expand Down

0 comments on commit eda148e

Please sign in to comment.