Skip to content

Decorate unsafe code block with allow unused_unsafe #1060

@z-tech

Description

@z-tech

The CI has started giving an error that the unsafe block is not needed. However, the unsafe block cannot be removed and thus needs to be decorated with allow unused_unsafe.

error: unnecessary `unsafe` block
  --> ff/src/biginteger/arithmetic.rs:18:5
   |
18 |     unsafe {
   |     ^^^^^^ unnecessary `unsafe` block
   |
   = note: `-D unused-unsafe` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(unused_unsafe)]`

error: unnecessary `unsafe` block
  --> ff/src/biginteger/arithmetic.rs:52:5
   |
52 |     unsafe {
   |     ^^^^^^ unnecessary `unsafe` block

error: unnecessary `unsafe` block
   --> ff/src/biginteger/mod.rs:366:17
    |
366 |                 unsafe {
    |                 ^^^^^^ unnecessary `unsafe` block

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions