Skip to content

Commit 0d2587e

Browse files
clippy fmt lint
1 parent 2b5e3c6 commit 0d2587e

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

crates/djls-project/src/python.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ mod tests {
276276

277277
mod env_discovery {
278278
use system::mock::MockGuard;
279-
use system::mock::{self as sys_mock};
279+
use system::mock::{
280+
self as sys_mock,
281+
};
280282
use which::Error as WhichError;
281283

282284
use super::*;

crates/djls-source/src/system.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
use std::io;
2+
13
use camino::Utf8Path;
24
use camino::Utf8PathBuf;
35
use rustc_hash::FxHashMap;
4-
use std::io;
56

67
pub trait FileSystem: Send + Sync {
78
fn read_to_string(&self, path: &Utf8Path) -> io::Result<String>;

crates/djls-workspace/src/workspace.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,12 +253,11 @@ mod tests {
253253
use super::*;
254254

255255
mod file_system {
256-
use super::*;
257-
258256
use camino::Utf8PathBuf;
259257
use djls_source::InMemoryFileSystem;
260258
use url::Url;
261259

260+
use super::*;
262261
use crate::buffers::Buffers;
263262
use crate::document::TextDocument;
264263
use crate::language::LanguageId;

0 commit comments

Comments
 (0)