Make Error::new private to the crate.

This commit is contained in:
Jimmy Cuadra 2019-07-08 18:51:15 -07:00
parent c0d10881a2
commit 6ffd73b312

View File

@ -449,7 +449,7 @@ impl Error {
/// # Parameters
///
/// * message: The error message.
pub fn new<T>(message: T) -> Self
pub(crate) fn new<T>(message: T) -> Self
where
T: Into<String>,
{