Skip to content

Commit 7a735ac

Browse files
committed
Fix a warning with the latest nightly compiler
The latest compiler warns about unnecessary parentheses in a position that previous compilers ignored.
1 parent cfc550f commit 7a735ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mqueue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub fn mq_setattr(mqd: mqd_t, newattr: &MqAttr) -> Result<MqAttr> {
148148
/// Convenience function.
149149
/// Sets the `O_NONBLOCK` attribute for a given message queue descriptor
150150
/// 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> {
152152
let oldattr = mq_getattr(mqd)?;
153153
let newattr = MqAttr::new(c_long::from(MQ_OFlag::O_NONBLOCK.bits()),
154154
oldattr.mq_attr.mq_maxmsg,
@@ -160,7 +160,7 @@ pub fn mq_set_nonblock(mqd: mqd_t) -> Result<(MqAttr)> {
160160
/// Convenience function.
161161
/// Removes `O_NONBLOCK` attribute for a given message queue descriptor
162162
/// 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> {
164164
let oldattr = mq_getattr(mqd)?;
165165
let newattr = MqAttr::new(0,
166166
oldattr.mq_attr.mq_maxmsg,

0 commit comments

Comments
 (0)