Skip to content

Commit

Permalink
style: Fix all clippy+rustfmt lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KokaKiwi committed Nov 7, 2024
1 parent 628431e commit c4e140d
Show file tree
Hide file tree
Showing 25 changed files with 1,845 additions and 1,859 deletions.
File renamed without changes.
1 change: 0 additions & 1 deletion src/config/mod.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub fn init(log_format: LogFormat, log_filter: Option<String>) {
use tracing_subscriber::prelude::*;
use tracing_subscriber::{fmt, EnvFilter};

use crate::config::config;
use crate::config;

let config = &config::get().log;

Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct Options {
async fn main() {
let options = Options::parse();

config::config::init(&options);
config::init(&options);
// if debug_component is set, we only want to log the specified component. We change the options.log_format to do it.
let mut log_filter = None;
if options.debug_component.is_some() {
Expand Down
2 changes: 1 addition & 1 deletion src/monitor.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::config::config;
use crate::config;
use bytes::Bytes;
use http::{Request, Response, StatusCode};
use http_body_util::{combinators::BoxBody, BodyExt, Empty};
Expand Down
135 changes: 0 additions & 135 deletions src/proxy/compute/compute.rs

This file was deleted.

2 changes: 1 addition & 1 deletion src/proxy/compute/data_collection/components/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use wasmtime::{
use wasmtime_wasi::{WasiCtx, WasiView};

use super::{DataCollection, DataCollectionPre};
use crate::config::config;
use crate::config;

static COMPONENTS_CONTEXT: OnceCell<ComponentsContext> = OnceCell::const_new();

Expand Down
2 changes: 1 addition & 1 deletion src/proxy/compute/data_collection/components/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use http::{header, HeaderMap, HeaderName, HeaderValue};
use json_pretty::PrettyFormatter;
use tracing::{error, info, span, Instrument, Level};

use crate::config::config;
use crate::config;
use crate::proxy::compute::data_collection::payload::Event;
use context::ComponentsContext;
use exports::provider;
Expand Down
Loading

0 comments on commit c4e140d

Please sign in to comment.