Skip to content

Message::{into_text,to_text} could use a more specific error type #438

@wackbyte

Description

@wackbyte

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions