We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents edc11a7 + e94bb9f commit ba90dceCopy full SHA for ba90dce
src/sync/client.rs
@@ -50,20 +50,7 @@ impl Client {
50
51
#[cfg(unix)]
52
/// Initialize a new [`Client`] from raw file descriptor.
53
- #[deprecated(since="0.8.0", note="please use `new_from_fd` instead")]
54
- pub fn new(fd: RawFd) -> Client {
55
- let conn = ClientConnection::new(fd);
56
-
57
- Self::new_client(conn).unwrap_or_else(|e| {
58
- panic!(
59
- "client was not successfully initialized: {}", e
60
- )
61
- })
62
- }
63
64
- #[cfg(unix)]
65
- /// Initialize a new [`Client`] from raw file descriptor.
66
- pub fn new_from_fd(fd: RawFd) -> Result<Client> {
+ pub fn new(fd: RawFd) -> Result<Client> {
67
let conn = ClientConnection::new(fd);
68
69
Self::new_client(conn)
0 commit comments