File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ pub fn mq_setattr(mqd: mqd_t, newattr: &MqAttr) -> Result<MqAttr> {
148
148
/// Convenience function.
149
149
/// Sets the `O_NONBLOCK` attribute for a given message queue descriptor
150
150
/// Returns the old attributes
151
- pub fn mq_set_nonblock ( mqd : mqd_t ) -> Result < ( MqAttr ) > {
151
+ pub fn mq_set_nonblock ( mqd : mqd_t ) -> Result < MqAttr > {
152
152
let oldattr = mq_getattr ( mqd) ?;
153
153
let newattr = MqAttr :: new ( c_long:: from ( MQ_OFlag :: O_NONBLOCK . bits ( ) ) ,
154
154
oldattr. mq_attr . mq_maxmsg ,
@@ -160,7 +160,7 @@ pub fn mq_set_nonblock(mqd: mqd_t) -> Result<(MqAttr)> {
160
160
/// Convenience function.
161
161
/// Removes `O_NONBLOCK` attribute for a given message queue descriptor
162
162
/// Returns the old attributes
163
- pub fn mq_remove_nonblock ( mqd : mqd_t ) -> Result < ( MqAttr ) > {
163
+ pub fn mq_remove_nonblock ( mqd : mqd_t ) -> Result < MqAttr > {
164
164
let oldattr = mq_getattr ( mqd) ?;
165
165
let newattr = MqAttr :: new ( 0 ,
166
166
oldattr. mq_attr . mq_maxmsg ,
You can’t perform that action at this time.
0 commit comments