Skip to content

Commit 0364706

Browse files
committed
Fix CI
1 parent a7a7964 commit 0364706

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

phper-doc/doc/_05_internal_types/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## DST & Owned Type
44

5-
In Rust, there are many types that appear in pairs, like [str](str) / [String](String),
5+
In Rust, there are many types that appear in pairs, like [str] / [String],
66
[OsStr](std::ffi::OsStr) / [OsString](std::ffi::OsString),
77
[CStr](std::ffi::CStr) / [CString](std::ffi::CString).
88

99
For example:
1010

11-
- [str](str): Dynamically sized type, implements `!Sized`, usually used with reference
11+
- [str]: Dynamically sized type, implements `!Sized`, usually used with reference
1212
notation, as `&str`.
13-
- [String](String): Ownership type, encapsulates a pointer to a heap memory allocation.
13+
- [String]: Ownership type, encapsulates a pointer to a heap memory allocation.
1414

1515
PHPER follows this design, there are the following types:
1616

phper/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,15 @@ thiserror = "1.0.63"
3333
[build-dependencies]
3434
phper-build = { workspace = true }
3535
phper-sys = { workspace = true }
36+
37+
[lints.rust]
38+
unexpected_cfgs = { level = "warn", check-cfg = [
39+
'cfg(phper_major_version, values("7"))',
40+
'cfg(phper_major_version, values("8"))',
41+
'cfg(phper_minor_version, values("0"))',
42+
'cfg(phper_minor_version, values("1"))',
43+
'cfg(phper_minor_version, values("2"))',
44+
'cfg(phper_minor_version, values("3"))',
45+
'cfg(phper_minor_version, values("4"))',
46+
'cfg(phper_zts)',
47+
] }

0 commit comments

Comments
 (0)