Skip to content

Commit 1f290c7

Browse files
committed
Remove unused internal_err
1 parent 683cd9f commit 1f290c7

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use conduit::Response;
66
use serde::Serialize;
77

88
pub use self::errors::ChainError;
9-
pub use self::errors::{bad_request, cargo_err, internal, internal_error, AppError, AppResult};
9+
pub use self::errors::{bad_request, cargo_err, internal, AppError, AppResult};
1010
pub use self::io_util::{read_fill, read_le_u32, LimitErrorReader};
1111
pub use self::request_helpers::*;
1212
pub use self::request_proxy::RequestProxy;

src/util/errors.rs

-9
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,6 @@ impl fmt::Display for BadRequest {
285285
}
286286
}
287287

288-
pub fn internal_error(error: &str, detail: &str) -> Box<dyn AppError> {
289-
Box::new(ConcreteAppError {
290-
description: error.to_string(),
291-
detail: Some(detail.to_string()),
292-
cause: None,
293-
cargo_err: false,
294-
})
295-
}
296-
297288
pub fn internal<S: ToString + ?Sized>(error: &S) -> Box<dyn AppError> {
298289
Box::new(ConcreteAppError {
299290
description: error.to_string(),

0 commit comments

Comments
 (0)