Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: removes remaining unused imports #69

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions common/src/cpe22.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use cpe::component::OwnedComponent;
use cpe::cpe::{Cpe, CpeType};
use cpe::uri::{OwnedUri, Uri};
use std::fmt::{Debug, Display, Formatter};
use std::fmt::{Debug, Formatter};

#[derive(Clone)]
pub struct Cpe22 {
Expand Down
2 changes: 0 additions & 2 deletions common/src/package/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use serde::{Deserialize, Serialize};

use crate::purl::Purl;

#[derive(Serialize, Deserialize, Clone, Debug, Default)]
pub struct PackageVulnerabilityAssertions {
pub assertions: Vec<Assertion>,
Expand Down
7 changes: 2 additions & 5 deletions server/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#![allow(unused)]

use crate::server::read;
use crate::server::Error::System;
use actix_web::middleware::Logger;
use actix_web::{web, App, HttpServer};
use actix_web::web;
use std::process::ExitCode;
use std::sync::Arc;
use std::time::Duration;
Expand All @@ -14,7 +11,7 @@ use trustify_auth::authorizer::Authorizer;
use trustify_common::config::Database;
use trustify_infrastructure::app::http::{HttpServerBuilder, HttpServerConfig};
use trustify_infrastructure::endpoint::Huevos;
use trustify_infrastructure::health::checks::{Local, Probe};
use trustify_infrastructure::health::checks::Local;
use trustify_infrastructure::{Infrastructure, InfrastructureConfig};

pub mod server;
Expand Down
1 change: 0 additions & 1 deletion server/src/server/read/package.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use actix_web::{get, web, HttpResponse, Responder};
use serde::{Deserialize, Serialize};
use std::str::FromStr;
use trustify_api::db::Transactional;

use trustify_common::purl::Purl;

Expand Down
2 changes: 1 addition & 1 deletion server/src/server/read/vulnerability.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::AppState;
use actix_web::{get, post, web, HttpResponse, Responder};
use actix_web::{get, web, HttpResponse, Responder};

#[utoipa::path(
responses(
Expand Down
Loading