1+ use std:: {
2+ io:: { self , BufRead , Write } ,
3+ ops:: Range ,
4+ } ;
5+
16use itertools:: Itertools ;
2- use std:: io:: { self , BufRead , Write } ;
3- use std:: ops:: Range ;
47
58/// Write minimap to the writer.
69pub fn write (
@@ -50,8 +53,7 @@ pub fn write(
5053/// Basic usage:
5154///
5255/// ```
53- /// use std::io;
54- /// use std::io::BufReader;
56+ /// use std::{io, io::BufReader};
5557///
5658/// let stdin = io::stdin();
5759/// code_minimap::print(stdin.lock(), 1.0, 1.0, None).unwrap();
@@ -67,11 +69,11 @@ pub fn print(reader: impl BufRead, hscale: f64, vscale: f64, padding: Option<usi
6769/// Basic usage:
6870///
6971/// ```
70- /// use std::io;
71- /// use std::io::BufReader;
72+ /// use std::{io, io::BufReader};
7273///
7374/// let stdin = io::stdin();
74- /// let s = code_minimap::write_to_string(stdin.lock(), 1.0, 1.0, None).unwrap();
75+ /// let s =
76+ /// code_minimap::write_to_string(stdin.lock(), 1.0, 1.0, None).unwrap();
7577/// print!("{}", s);
7678/// ```
7779pub fn write_to_string ( reader : impl BufRead , hscale : f64 , vscale : f64 , padding : Option < usize > ) -> io:: Result < String > {
@@ -130,9 +132,10 @@ const BRAILLE_MATRIX : [char; 256] = [
130132
131133#[ cfg( test) ]
132134mod test {
133- use super :: * ;
134135 use rstest:: * ;
135136
137+ use super :: * ;
138+
136139 #[ rstest(
137140 input,
138141 expected,
0 commit comments