mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-08 19:33:53 +01:00
FIX codegen, again
This commit is contained in:
parent
01bc5a990b
commit
e86184fcd0
1 changed files with 7 additions and 5 deletions
|
@ -78,12 +78,14 @@ pub fn ensure_files_contents<'a>(
|
||||||
let mut err_count = 0;
|
let mut err_count = 0;
|
||||||
|
|
||||||
for (path, contents) in files_and_contents {
|
for (path, contents) in files_and_contents {
|
||||||
|
if path.exists() {
|
||||||
let old_contents = fs::read_to_string(path).unwrap();
|
let old_contents = fs::read_to_string(path).unwrap();
|
||||||
|
|
||||||
if normalize_newlines(&old_contents) == normalize_newlines(contents) {
|
if normalize_newlines(&old_contents) == normalize_newlines(contents) {
|
||||||
// File is already up to date.
|
// File is already up to date.
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
err_count += 1;
|
err_count += 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue