You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
#[derive(Debug)]enumMonoError{DataContainsNulByte,FailedToCreateDomain,FailedToOpenAssembly,Foobar,}// Just for demonstration purposes.implDefaultforMonoError{fndefault() -> Self{MonoError::Foobar}}// The `self` here is also for demonstration purposes.implFrom<NulError>forself::MonoError{fnfrom(_:NulError) -> Self{MonoError::DataContainsNulByte}}
In renaming MonoError to RtError I get:
#[derive(Debug)]enumRtError{DataContainsNulByte,FailedToCreateDomain,FailedToOpenAssembly,Foobar,}// Just for demonstration purposes.implDefaultforRtError{fndefault() -> Self{MonoError::Foobar}}// The `self` here is also for demonstration purposes.implFrom<NulError>forself::RtError{fnfrom(_:NulError) -> Self{MonoError::DataContainsNulByte}}
You will notice that the MonoError instances inside of the function bodies were not renamed as expected.