Skip to content

Commit

Permalink
Fix building/lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Mar 20, 2024
1 parent 7fa3d1f commit 1e9d8a4
Show file tree
Hide file tree
Showing 9 changed files with 646 additions and 538 deletions.
1,167 changes: 643 additions & 524 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/bin/offline/dl.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use crate::offline;
use crate::rla;
use crate::rla::ci::{self, CiPlatform};
use std::collections::HashSet;
use std::io::{self, Write};
Expand Down
3 changes: 1 addition & 2 deletions src/bin/offline/extract.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
use crate::offline;
use crate::rla;

use rla::index::IndexStorage;
use std::fs;
use std::io::{self, Write};
use std::path::Path;
use std::time::Duration;
use std::time::Instant;
use walkdir::{self, WalkDir};
use walkdir::WalkDir;

struct Line<'a> {
_original: &'a [u8],
Expand Down
2 changes: 0 additions & 2 deletions src/bin/offline/fs.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use crate::rla;
use anyhow::Context;
use brotli;
use percent_encoding::{AsciiSet, CONTROLS};
use std::fs;
use std::io::{Read, Write};
Expand Down
3 changes: 1 addition & 2 deletions src/bin/offline/learn.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use crate::offline;
use crate::rla;

use rla::index::IndexStorage;
use std::path::PathBuf;
use std::time::Duration;
use std::time::Instant;
use walkdir::{self, WalkDir};
use walkdir::WalkDir;

pub fn learn(
ci: &dyn rla::ci::CiPlatform,
Expand Down
2 changes: 0 additions & 2 deletions src/bin/server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use crate::rla;

pub use self::service::RlaService;
pub use self::worker::Worker;

Expand Down
4 changes: 1 addition & 3 deletions src/bin/server/service.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
use super::QueueItem;

use crate::rla;
use anyhow::bail;
use hyper::{self, Body, Method, StatusCode};
use hyper::{Body, Method, StatusCode};
use hyper::{Request, Response};
use serde_json;
use std::env;

#[derive(Clone)]
Expand Down
1 change: 0 additions & 1 deletion src/bin/server/worker.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use super::QueueItem;

use crate::rla;
use crate::rla::ci::{self, BuildCommit, CiPlatform};
use anyhow::bail;
use rla::index::IndexStorage;
Expand Down
1 change: 0 additions & 1 deletion src/bin/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use crate::rla;
use anyhow::Context;
use std::process;

Expand Down

0 comments on commit 1e9d8a4

Please sign in to comment.