Skip to content

Clippy will warn on use bindgen::CargoCallbacks; regardless of the usage #2712

Open
@latin-1

Description

@latin-1

I'm not sure if it should be reported here though.

Input C/C++ Header

Bindgen Invocation

use bindgen::CargoCallbacks;
//           ^^^^^^^^^^^^^^

bindgen::Builder::default()
    .header("input.h")
    .parse_callbacks(Box::new(CargoCallbacks::new()))
    .generate()
    .unwrap()

Actual Results

error: use of deprecated constant `bindgen::CargoCallbacks`: Use `CargoCallbacks::new()` instead. Please, check the documentation for further information.

Expected Results

No warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions