fix: fix bmap-rs error
This commit is contained in:
@@ -34,3 +34,10 @@ This project will find it in `build.rs` script and tell Rust compiler how to lin
|
|||||||
> You also may need rename some contents of other files involving this rename change.
|
> You also may need rename some contents of other files involving this rename change.
|
||||||
|
|
||||||
Also due to this, when distributing your Rust project, please do not forget copy the built BMap library with your Rust artifacts.
|
Also due to this, when distributing your Rust project, please do not forget copy the built BMap library with your Rust artifacts.
|
||||||
|
|
||||||
|
## Test
|
||||||
|
|
||||||
|
The test code located in `tests` directory is NOT designed for plain "cargo test".
|
||||||
|
It is more close to an independent test program, so executing it may require some extra work.
|
||||||
|
First you need configure all environment variables for testing.
|
||||||
|
Then you can execute `cargo test complete -- --nocapture` to run the complete test program.
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
//! This module is what user of this library should use.
|
//! This module is what user of this library should use.
|
||||||
|
|
||||||
mod marshaler;
|
mod marshaler;
|
||||||
//mod utilities;
|
|
||||||
|
|
||||||
use crate::bmap::{self, BMBOOL, CKDWORD, CKID, CKINT, CKSTRING, CKWORD, PBMVOID};
|
use crate::bmap::{self, BMBOOL, CKDWORD, CKID, CKINT, CKSTRING, CKWORD, PBMVOID};
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
@@ -322,7 +321,7 @@ macro_rules! libiter_len_body {
|
|||||||
if $current_cnt >= $all_cnt {
|
if $current_cnt >= $all_cnt {
|
||||||
0
|
0
|
||||||
} else {
|
} else {
|
||||||
$current_cnt - $all_cnt
|
$all_cnt - $current_cnt
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -332,7 +331,7 @@ macro_rules! libiter_size_hint_body {
|
|||||||
if $current_cnt >= $all_cnt {
|
if $current_cnt >= $all_cnt {
|
||||||
(0, Some(0))
|
(0, Some(0))
|
||||||
} else {
|
} else {
|
||||||
let remaining = $current_cnt - $all_cnt;
|
let remaining = $all_cnt - $current_cnt;
|
||||||
(remaining, Some(remaining))
|
(remaining, Some(remaining))
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
//! BMap wrapper used utility stuff
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user