Skip to content

Commit

Permalink
chore: Move 'http' module under 'util' module
Browse files Browse the repository at this point in the history
This commit moves the 'http' module under the 'util' module, and updates
callers.

Signed-off-by: Andrew Lilley Brinker <[email protected]>
  • Loading branch information
alilleybrinker committed Aug 9, 2024
1 parent f0d0f34 commit edab626
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hipcheck/src/data/github/code_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use crate::error::Error;
use crate::error::Result;
use crate::hc_error;
use crate::http::authenticated_agent::AuthenticatedAgent;
use crate::util::http::authenticated_agent::AuthenticatedAgent;
use serde_json::Value;

const GH_API_V4_SEARCH: &str = "https://api.github.com/search/code";
Expand Down
2 changes: 1 addition & 1 deletion hipcheck/src/data/github/graphql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::data::github::data::*;
use crate::error::Error;
use crate::error::Result;
use crate::hc_error;
use crate::http::authenticated_agent::AuthenticatedAgent;
use crate::util::http::authenticated_agent::AuthenticatedAgent;
use graphql_client::GraphQLQuery;
use graphql_client::QueryBody;
use graphql_client::Response;
Expand Down
2 changes: 1 addition & 1 deletion hipcheck/src/data/github/graphql_pr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::data::github::data::*;
use crate::error::Error;
use crate::error::Result;
use crate::hc_error;
use crate::http::authenticated_agent::AuthenticatedAgent;
use crate::util::http::authenticated_agent::AuthenticatedAgent;
use chrono::DateTime;
use graphql_client::GraphQLQuery;
use graphql_client::QueryBody;
Expand Down
2 changes: 1 addition & 1 deletion hipcheck/src/data/github/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::data::github::data::*;
use crate::data::github::graphql::get_all_reviews;
use crate::data::github::graphql_pr::get_all_pr_reviews;
use crate::error::Result;
use crate::http::authenticated_agent::AuthenticatedAgent;
use crate::util::http::authenticated_agent::AuthenticatedAgent;
use std::sync::Arc;

pub struct GitHub<'a> {
Expand Down
2 changes: 1 addition & 1 deletion hipcheck/src/git2_rustls_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
//!
//! <https://www.git-scm.com/docs/http-protocol>.
use crate::http::agent;
use crate::shell::Shell;
use crate::util::http::agent;
use base64::prelude::BASE64_STANDARD;
use base64::Engine;
use dialoguer::{Input, Password};
Expand Down
1 change: 0 additions & 1 deletion hipcheck/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ mod data;
mod error;
mod git2_log_shim;
mod git2_rustls_transport;
mod http;
mod log_bridge;
mod metric;
mod report;
Expand Down
2 changes: 1 addition & 1 deletion hipcheck/src/session/pm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use crate::context::Context as _;
use crate::error::Error;
use crate::error::Result;
use crate::hc_error;
use crate::http::agent;
use crate::target::{Package, PackageHost};
use crate::util::http::agent;
use crate::CheckKind;
use crate::EXIT_FAILURE;
use serde_json::Value;
Expand Down
2 changes: 1 addition & 1 deletion hipcheck/src/setup.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::cli::SetupArgs;
use crate::error::Result;
use crate::hc_error;
use crate::http::agent;
use crate::util::http::agent;
use regex::Regex;
use std::fs::File;
use std::path::{Path, PathBuf};
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions hipcheck/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! Utility methods and types used throughout Hipcheck.
pub mod fs;
pub mod http;
pub mod iter;
pub mod redacted;
#[cfg(test)]
Expand Down

0 comments on commit edab626

Please sign in to comment.