mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 22:46:39 +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;
|
||||
|
||||
for (path, contents) in files_and_contents {
|
||||
if path.exists() {
|
||||
let old_contents = fs::read_to_string(path).unwrap();
|
||||
|
||||
if normalize_newlines(&old_contents) == normalize_newlines(contents) {
|
||||
// File is already up to date.
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
err_count += 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue