Skip to content

Commit 6e5ab88

Browse files
committed
Run cargo fmt for the last time
Now that we have Nit set up to run `rustfmt` this should be the last time I forget to run it and have to run it manually.
1 parent 7394ac6 commit 6e5ab88

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

src/engine.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ use wasmtime::{
1111
component::{Component, Linker},
1212
};
1313
use wasmtime_wasi::{
14-
bindings::Command, pipe::MemoryOutputPipe, DirPerms, FilePerms, I32Exit, IoView, ResourceTable, WasiCtx, WasiCtxBuilder, WasiView
14+
DirPerms, FilePerms, I32Exit, IoView, ResourceTable, WasiCtx, WasiCtxBuilder, WasiView,
15+
bindings::Command, pipe::MemoryOutputPipe,
1516
};
1617

1718
use crate::{

src/fetch.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ fn to_async_read(
8888
}
8989

9090
pub async fn fetch_linters(linters: &[ConfigLinter], cache_dir: &Path) -> Result<()> {
91-
9291
info!("Fetching linters...");
9392

9493
// 1. Collect all the URL/binary hash pairs.

src/file_matching.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,11 @@ mod test {
6666

6767
#[test]
6868
fn test_matching_files() {
69-
let files = vec![
70-
FileInfo {
71-
path: "foo.rs".into(),
72-
ty: FileType::Text,
73-
shebang: None,
74-
}
75-
];
69+
let files = vec![FileInfo {
70+
path: "foo.rs".into(),
71+
ty: FileType::Text,
72+
shebang: None,
73+
}];
7674

7775
let expr = MatchExpression::Glob(glob::Pattern::new("*.rs").unwrap());
7876
let matches = matching_files(&files, &expr);

src/git.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ fn read_up_to(file: &mut impl std::io::Read, mut buf: &mut [u8]) -> Result<usize
217217
Ok(buf_len - buf.len())
218218
}
219219

220-
221220
#[cfg(test)]
222221
mod test {
223222
use super::*;

0 commit comments

Comments
 (0)