Make Error::new private to the crate.
This commit is contained in:
parent
c0d10881a2
commit
6ffd73b312
@ -449,7 +449,7 @@ impl Error {
|
|||||||
/// # Parameters
|
/// # Parameters
|
||||||
///
|
///
|
||||||
/// * message: The error message.
|
/// * message: The error message.
|
||||||
pub fn new<T>(message: T) -> Self
|
pub(crate) fn new<T>(message: T) -> Self
|
||||||
where
|
where
|
||||||
T: Into<String>,
|
T: Into<String>,
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user