Currently Json::new_unchecked is marked as unsafe, however this is an incorrect usage of unsafe, as using the method would not cause memory safety bugs, it would cause application safety bugs. unsafe is scoped to just memory safety issues, and the method already mentions unchecked so the unsafe designation should be removed.
Currently
Json::new_unchecked
is marked asunsafe
, however this is an incorrect usage ofunsafe
, as using the method would not cause memory safety bugs, it would cause application safety bugs.unsafe
is scoped to just memory safety issues, and the method already mentionsunchecked
so theunsafe
designation should be removed.