We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31d0819 commit ffe84ffCopy full SHA for ffe84ff
1 file changed
src/error.rs
@@ -100,8 +100,8 @@ impl StructuredError {
100
/// reporting mechanism. Instead of calling this method, you can access the
101
/// StructuredError `message` field directly.
102
#[deprecated(since="0.3.3", note="Please use the `message` field directly instead.")]
103
- pub fn message(&self) -> &String {
104
- self.message.as_ref().unwrap()
+ pub fn message(&self) -> &str {
+ self.message.as_ref().unwrap().as_str()
105
}
106
107
/// Returns the provided c_str as Some(String), or None if the provided pointer is null.
0 commit comments