Skip to content

Commit a82a644

Browse files
committed
gio: Move conditionally used imports to the place where they're used
Otherwise they're unused when compiling without feature flags enabled.
1 parent 6c6c7bd commit a82a644

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gio/tests/std_io_copy.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
use std::io;
2-
3-
use gio::prelude::*;
4-
51
#[test]
62
#[cfg(feature = "v2_36")]
73
fn std_io_copy_with_gio() {
4+
use gio::prelude::*;
5+
use std::io;
6+
87
let bytes = glib::Bytes::from_owned([1, 2, 3]);
98
let mut read = gio::MemoryInputStream::new_from_bytes(&bytes).into_read();
109
let mut write = gio::MemoryOutputStream::new_resizable().into_write();

0 commit comments

Comments
 (0)