mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
crates.io source files differ in length from repo source files
because crlf->lf conversions
This commit is contained in:
parent
3b9041d8d7
commit
8f71164278
1 changed files with 4 additions and 3 deletions
|
|
@ -228,9 +228,10 @@ fn compare_files(a: &Path, b: &Path) -> Result<bool, DynError> {
|
||||||
let f2 = File::open(b)?;
|
let f2 = File::open(b)?;
|
||||||
|
|
||||||
// check if file sizes are the same
|
// check if file sizes are the same
|
||||||
if f1.metadata().unwrap().len() != f2.metadata().unwrap().len() {
|
// HAHA joke is on me, this doesn't work because CRLF->LF conversions.
|
||||||
return Ok(false);
|
// if f1.metadata().unwrap().len() != f2.metadata().unwrap().len() {
|
||||||
}
|
// return Ok(false);
|
||||||
|
// }
|
||||||
|
|
||||||
let s1 = fs::read_to_string(a);
|
let s1 = fs::read_to_string(a);
|
||||||
let s2 = fs::read_to_string(b);
|
let s2 = fs::read_to_string(b);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue