Use self_cell for creating self-referential struct

Remove indigenous unsafe self-referential implemention which has a lesser chance to be audited.
This commit is contained in:
Huang-Huang Bao 2023-09-19 01:59:51 +08:00
parent 33706262f6
commit 331710a16f
No known key found for this signature in database
GPG key ID: 33C3271387A13D1B
2 changed files with 51 additions and 96 deletions

View file

@ -13,7 +13,6 @@ rust-version = "1.65"
fontdb = { version = "0.14.1", default-features = false }
libm = "0.2.7"
log = "0.4.20"
aliasable = "0.1.3"
rustybuzz = { version = "0.10.0", default-features = false, features = ["libm"] }
swash = { version = "0.1.8", optional = true }
syntect = { version = "5.1.0", optional = true }
@ -24,6 +23,7 @@ unicode-segmentation = "1.10.1"
rangemap = "1.3.0"
hashbrown = { version = "0.14.0", optional = true, default-features = false }
rustc-hash = { version = "1.1.0", default-features = false }
self_cell = "1.0.1"
[dependencies.unicode-bidi]
version = "0.3.13"