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
By this way, the error will be returned as a &'static str and we can return any errors with this way, what's the advantage of thiserror over &'static str?
The text was updated successfully, but these errors were encountered:
Hi,
The following code is a common way to return value:
By this way, the error will be returned as a
&'static str
and we can return any errors with this way, what's the advantage ofthiserror
over&'static str
?The text was updated successfully, but these errors were encountered: