Skip to content

Commit a79f85b

Browse files
committed
feat: v1.1.18
1 parent 6c3a8a7 commit a79f85b

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "china_identification_card"
3-
version = "1.1.17"
3+
version = "1.1.18"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,6 @@ To use this crate, you can run cmd:
2828
cargo add china_identification_card
2929
```
3030

31-
## Examples
32-
33-
```rust
34-
use china_identification_card::*;
35-
36-
let valid: bool = ChineseIdCard::is_valid_id_number("110101202311012176");
37-
assert_eq!(valid, true);
38-
let un_valid: bool = ChineseIdCard::is_invalid_id_number("110101202311012171");
39-
assert_eq!(un_valid, true);
40-
```
41-
4231
## License
4332

4433
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

src/cfg.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ fn test_is_valid_id_number() {
33
use crate::*;
44

55
let valid: bool = ChineseIdCard::is_valid_id_number("110101202311012176");
6-
assert_eq!(valid, true);
6+
assert!(valid);
77
let un_valid: bool = ChineseIdCard::is_invalid_id_number("110101202311012171");
8-
assert_eq!(un_valid, true);
8+
assert!(un_valid);
99
}

0 commit comments

Comments
 (0)