Skip to content

Commit

Permalink
Collapse binrw imports in tests to a single use statement
Browse files Browse the repository at this point in the history
  • Loading branch information
csnover committed Nov 15, 2022
1 parent eeddf6f commit b161cd5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 16 deletions.
3 changes: 1 addition & 2 deletions binrw/tests/derive/write/args.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use binrw::io::Cursor;
use binrw::{binwrite, BinWrite};
use binrw::{binwrite, io::Cursor, BinWrite};

#[test]
fn pass_args() {
Expand Down
3 changes: 1 addition & 2 deletions binrw/tests/derive/write/c_enum.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use binrw::io::Cursor;
use binrw::{BinRead, BinReaderExt, BinWrite, Endian};
use binrw::{io::Cursor, BinRead, BinReaderExt, BinWrite, Endian};

#[test]
fn write_enum() {
Expand Down
3 changes: 1 addition & 2 deletions binrw/tests/derive/write/enum.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use binrw::io::Cursor;
use binrw::{BinRead, BinReaderExt, BinWrite, Endian};
use binrw::{io::Cursor, BinRead, BinReaderExt, BinWrite, Endian};

#[test]
fn enum_round_trip() {
Expand Down
3 changes: 1 addition & 2 deletions binrw/tests/derive/write/if_cond.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use binrw::BinWrite;
use binrw::{io::Cursor, Endian};
use binrw::{io::Cursor, BinWrite, Endian};

#[derive(BinWrite)]
struct Test {
Expand Down
3 changes: 1 addition & 2 deletions binrw/tests/derive/write/map.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use binrw::io::Cursor;
use binrw::{binwrite, BinWrite};
use binrw::{binwrite, io::Cursor, BinWrite};

#[test]
fn map_field() {
Expand Down
3 changes: 1 addition & 2 deletions binrw/tests/derive/write/padding.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use binrw::io::Cursor;
use binrw::{BinRead, BinReaderExt, BinWrite, Endian};
use binrw::{io::Cursor, BinRead, BinReaderExt, BinWrite, Endian};

#[test]
fn padding_big() {
Expand Down
3 changes: 1 addition & 2 deletions binrw/tests/derive/write/restore_position.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use binrw::io::Cursor;
use binrw::BinWrite;
use binrw::{io::Cursor, BinWrite};

#[test]
fn restore_position_writing() {
Expand Down
3 changes: 1 addition & 2 deletions binrw/tests/derive/write/simple.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use binrw::{io::Cursor, Endian};
use binrw::{BinRead, BinWrite, BinWriterExt};
use binrw::{io::Cursor, BinRead, BinWrite, BinWriterExt, Endian};

#[derive(BinWrite)]
struct Test {
Expand Down

0 comments on commit b161cd5

Please sign in to comment.