diff --git a/webrtc-sys/src/jsep.cpp b/webrtc-sys/src/jsep.cpp index 0dcc9f0f..a1283229 100644 --- a/webrtc-sys/src/jsep.cpp +++ b/webrtc-sys/src/jsep.cpp @@ -53,7 +53,7 @@ rust::String IceCandidate::candidate() const { rust::String IceCandidate::stringify() const { std::string str; ice_candidate_->ToString(&str); - return rust::String{str}; + return rust::String::lossy(str); } std::unique_ptr IceCandidate::release() { @@ -85,7 +85,7 @@ SdpType SessionDescription::sdp_type() const { rust::String SessionDescription::stringify() const { std::string str; session_description_->ToString(&str); - return rust::String{str}; + return rust::String::lossy(str); } std::unique_ptr SessionDescription::clone() const {