The into_text and to_text methods on Message currently return a Result with tungstenite's error type even though the only error they can produce is a UTF-8 error. I suggest that they use FromUtf8Error and Utf8Error like Frame's into_text and to_text methods.
(Also, Message::into_text and Frame::into_string are named inconsistently...) Was fixed in 0.25.0.
The
into_textandto_textmethods onMessagecurrently return aResultwith tungstenite's error type even though the only error they can produce is a UTF-8 error. I suggest that they useFromUtf8ErrorandUtf8ErrorlikeFrame'sinto_textandto_textmethods.(Also,Was fixed in 0.25.0.Message::into_textandFrame::into_stringare named inconsistently...)