|
3 | 3 | #![deny(unused_crate_dependencies)]
|
4 | 4 |
|
5 | 5 | use boon::{Compiler, SchemaIndex, Schemas, ValidationError};
|
6 |
| -use geozero::geojson::{GeoJsonString, GeoJsonWriter}; |
7 |
| -use geozero::wkt::Wkt; |
8 |
| -use geozero::{CoordDimensions, GeozeroGeometry, ToJson, ToWkt}; |
9 |
| -use pest::iterators::{Pair, Pairs}; |
10 |
| -use pest::pratt_parser::PrattParser; |
11 |
| -use pest::Parser; |
| 6 | +use geozero::{ |
| 7 | + geojson::{GeoJsonString, GeoJsonWriter}, |
| 8 | + wkt::Wkt, |
| 9 | + CoordDimensions, GeozeroGeometry, ToJson, ToWkt, |
| 10 | +}; |
| 11 | +use pest::{ |
| 12 | + iterators::{Pair, Pairs}, |
| 13 | + pratt_parser::PrattParser, |
| 14 | + Parser, |
| 15 | +}; |
12 | 16 | use serde_derive::{Deserialize, Serialize};
|
13 | 17 | use serde_json::Value;
|
14 |
| -use std::fs; |
15 |
| -use std::path::Path; |
| 18 | +use std::{fs, path::Path}; |
16 | 19 | use thiserror::Error;
|
17 | 20 |
|
18 | 21 | /// Crate-specific error enum.
|
@@ -675,8 +678,10 @@ pub fn parse_file(path: impl AsRef<Path>) -> Result<Expr, Error> {
|
675 | 678 | }
|
676 | 679 |
|
677 | 680 | fn get_stdin() -> Result<String, std::io::Error> {
|
678 |
| - use std::env; |
679 |
| - use std::io::{self, IsTerminal}; |
| 681 | + use std::{ |
| 682 | + env, |
| 683 | + io::{self, IsTerminal}, |
| 684 | + }; |
680 | 685 | let args: Vec<String> = env::args().collect();
|
681 | 686 | let mut buffer = String::new();
|
682 | 687 |
|
|
0 commit comments