servo icon indicating copy to clipboard operation
servo copied to clipboard

script: Wrap remaining unsafe code and enable `unsafe_op_in_unsafe_fn`

Open mrobinson opened this issue 1 month ago • 0 comments

This is last step toward enabling the default rustc unsafe_op_in_unsafe_fn warning for the script crate. It wraps the remaining unsafe code in unsafe {} and removes the line disabling this warning from script's Cargo.toml. In addition, two variables are renamed from v to something slightly more descriptive.

Testing: This should not change behavior so is covered by existing tests.

mrobinson avatar Nov 08 '25 12:11 mrobinson