Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Fix unused imports
Browse files Browse the repository at this point in the history
    warning: unused imports: `i8 as c_schar`, `u16 as c_ushort`
      --> src/lib.rs:50:52
       |
    50 |         i32 as c_int, i64 as c_long, i8 as c_char, i8 as c_schar, u16 as c_ushort, u32 as c_uint,
       |                                                    ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^
       |
       = note: `#[warn(unused_imports)]` on by default

    warning: unused imports: `yaml_break_t::*`, `yaml_emitter_state_t::*`, `yaml_error_type_t::*`, `yaml_mapping_style_t::*`, `yaml_parser_state_t::*`, `yaml_scalar_style_t::*`, `yaml_sequence_style_t::*`, `yaml_token_type_t::*`
     --> src/yaml.rs:6:5
      |
    6 |     yaml_break_t::*, yaml_emitter_state_t::*, yaml_encoding_t::*, yaml_error_type_t::*,
      |     ^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^                      ^^^^^^^^^^^^^^^^^^^^
    7 |     yaml_event_type_t::*, yaml_mapping_style_t::*, yaml_node_type_t::*, yaml_parser_state_t::*,
      |                           ^^^^^^^^^^^^^^^^^^^^^^^                       ^^^^^^^^^^^^^^^^^^^^^^
    8 |     yaml_scalar_style_t::*, yaml_sequence_style_t::*, yaml_token_type_t::*,
      |     ^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^
  • Loading branch information
dtolnay committed Oct 25, 2023
1 parent 4c53538 commit 902f100
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ use core::mem::size_of;
mod libc {
pub use core::ffi::c_void;
pub use core::primitive::{
i32 as c_int, i64 as c_long, i8 as c_char, i8 as c_schar, u16 as c_ushort, u32 as c_uint,
u64 as c_ulong, u8 as c_uchar,
i32 as c_int, i64 as c_long, i8 as c_char, u32 as c_uint, u64 as c_ulong, u8 as c_uchar,
};
}

Expand Down
6 changes: 1 addition & 5 deletions src/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ use crate::libc;
use core::ops::Deref;
use core::ptr::{self, addr_of};

pub use self::{
yaml_break_t::*, yaml_emitter_state_t::*, yaml_encoding_t::*, yaml_error_type_t::*,
yaml_event_type_t::*, yaml_mapping_style_t::*, yaml_node_type_t::*, yaml_parser_state_t::*,
yaml_scalar_style_t::*, yaml_sequence_style_t::*, yaml_token_type_t::*,
};
pub use self::{yaml_encoding_t::*, yaml_event_type_t::*, yaml_node_type_t::*};
pub use core::primitive::{i64 as ptrdiff_t, u64 as size_t, u8 as yaml_char_t};

/// The version directive data.
Expand Down

0 comments on commit 902f100

Please sign in to comment.