Skip to content

Commit 683cc81

Browse files
committed
Add deprecation warning to Multi::close
1 parent e47ec44 commit 683cc81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/multi.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,11 @@ impl Multi {
701701
///
702702
/// This method will be changed to take `self` in a future release.
703703
#[doc(hidden)]
704+
#[deprecated(
705+
since = "0.4.30",
706+
note = "cannot close safely without consuming self; \
707+
will be changed or removed in a future release"
708+
)]
704709
pub fn close(&self) -> Result<(), MultiError> {
705710
Ok(())
706711
}

0 commit comments

Comments
 (0)