Skip to content

Commit

Permalink
Remove redundant imports
Browse files Browse the repository at this point in the history
Done automatically by `cargo clippy --fix`

Change-type: patch
Signed-off-by: Zahari Petkov <[email protected]>
  • Loading branch information
majorz committed May 3, 2023
1 parent 1fa8770 commit 8c289c9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 15 deletions.
6 changes: 0 additions & 6 deletions src/config_json.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
use std::path::Path;

use hex;

use serde_json;
use serde_json::{Map, Value};

use base64;
use reqwest;

use crate::fs::{read_file, write_file};
use crate::random::fill_random;

Expand Down
5 changes: 0 additions & 5 deletions src/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ use std::collections::HashMap;
use std::thread;
use std::time::Duration;

use reqwest;

use serde_json;

use crate::schema::validate_schema_version;
use anyhow::{anyhow, Context, Result};

Expand Down Expand Up @@ -135,7 +131,6 @@ fn build_reqwest_client(root_certificate: Option<reqwest::Certificate>) -> Resul

#[cfg(test)]
mod tests {
use serde_json;

use super::*;
use crate::schema::SCHEMA_VERSION;
Expand Down
2 changes: 0 additions & 2 deletions src/schema.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::collections::HashMap;
use std::path::Path;

use serde_json;
use serde_json::Value;

use crate::fs::read_file;
Expand Down Expand Up @@ -65,7 +64,6 @@ pub fn validate_schema_version(json_data: &str) -> Result<()> {

#[cfg(test)]
mod tests {
use serde_json;

use super::*;

Expand Down
2 changes: 0 additions & 2 deletions src/systemd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ use std::env;
use std::thread;
use std::time::Duration;

use dbus;

use anyhow::{bail, Context, Result};

const SYSTEMD: &str = "org.freedesktop.systemd1";
Expand Down

0 comments on commit 8c289c9

Please sign in to comment.