Make Error::new private to the crate.
This commit is contained in:
parent
c0d10881a2
commit
6ffd73b312
@ -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>,
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user