Skip to content

Commit 845b432

Browse files
committed
client: deprecate Client::clear_callbacks
1 parent 1e89310 commit 845b432

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wayrs-client/src/connection.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ impl<D> Connection<D> {
324324
///
325325
/// You can use this function to change the "state type" of a connection.
326326
#[must_use]
327+
#[deprecated = "this function is error-prone and best avoided"]
327328
pub fn clear_callbacks<D2>(self) -> Connection<D2> {
328329
Connection {
329330
#[cfg(feature = "tokio")]

0 commit comments

Comments
 (0)