rust-mmap icon indicating copy to clipboard operation
rust-mmap copied to clipboard

MemoryMap error on windows

Open shellchocolat opened this issue 4 years ago • 0 comments

I cross compile a win_x86_64 and get an error on MemoryMap::new():

error[E0061]: this function takes 1 argument but 0 arguments were supplied
   --> /home/shellchocolat/.cargo/registry/src/github.com-1ecc6299db9ec823/mmap-0.1.1/src/lib.rs:324:26
    |
134 |     ErrVirtualAlloc(i32),
    |     -------------------- defined here
...
324 |                 0 => Err(ErrVirtualAlloc()),
    |                          ^^^^^^^^^^^^^^^-- supplied 0 arguments
    |                          |
    |                          expected 1 argument

So i think something is missing into the error handling.

Maybe you should:

324 |             0 => Err(ErrVirtualAlloc(errno())),

Could you take a look?

shellchocolat avatar Oct 07 '20 16:10 shellchocolat