Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions compress/src/compress/const.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/// The header name for content encoding.
pub const CONTENT_ENCODING: &str = "content-encoding";
pub(crate) const CONTENT_ENCODING: &str = "content-encoding";

/// An empty string.
pub const EMPTY_STR: &str = "";
pub(crate) const EMPTY_STR: &str = "";

/// The content encoding type for gzip.
pub(crate) const CONTENT_ENCODING_GZIP: &str = "gzip";
Expand Down
2 changes: 1 addition & 1 deletion request/src/common/const.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/// The application name used for user agent and logging.
pub const APP_NAME: &str = "http-request";
pub(crate) const APP_NAME: &str = "http-request";
4 changes: 3 additions & 1 deletion request/src/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ mod r#const;
mod r#impl;
mod r#struct;

pub use {r#const::*, r#struct::*};
pub use r#struct::*;

pub(crate) use r#const::*;

use super::*;
5 changes: 0 additions & 5 deletions request/tests/url/fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ fn test_request_error_clone_and_equality() {
assert_ne!(cloned, RequestError::Request("other".to_string()));
}

#[test]
fn test_app_name_constant() {
assert_eq!(APP_NAME, "http-request");
}

#[test]
fn test_header_name_constants() {
assert_eq!(ACCEPT, "accept");
Expand Down
1 change: 1 addition & 0 deletions rust-standards.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub_const_exempt = ["http-constant"]
Loading