mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
Fix errors
This commit is contained in:
parent
5e7afce019
commit
2d0497bf3b
1 changed files with 2 additions and 2 deletions
|
@ -25,9 +25,9 @@ impl WriteStrategy {
|
||||||
.open(path),
|
.open(path),
|
||||||
};
|
};
|
||||||
|
|
||||||
file.context("Failed to open the file `{path}` in write mode")?
|
file.with_context(|| format!("Failed to open the file `{path}` in write mode"))?
|
||||||
.write_all(content)
|
.write_all(content)
|
||||||
.context("Failed to write the file {path}")
|
.with_context(|| format!("Failed to write the file {path}"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue