We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ebd318 commit 16aa0c7Copy full SHA for 16aa0c7
crates/cli/src/subcommands/generate.rs
@@ -200,8 +200,8 @@ pub async fn exec_ex(
200
fs::create_dir_all(out_dir.join(parent))?;
201
}
202
let path = out_dir.join(fname);
203
- let contents = fs::read(&path);
204
- if contents.is_err() || contents.is_ok_and(|contents| !code.bytes().eq(contents)) {
+ let contents = fs::read_to_string(&path);
+ if contents.is_err() || contents.is_ok_and(|contents| code != contents) {
205
fs::write(&path, code)?;
206
207
paths.insert(path);
0 commit comments