zhaohaidao commented on PR #5617:
URL: https://github.com/apache/opendal/pull/5617#issuecomment-2672209834
```
Checking virtiofs_opendal v0.0.0
(/home/runner/work/opendal/opendal/integrations/virtiofs)
error: operator precedence can trip the unwary
--> src/virtiofs.rs:218:9
|
218 | / 1 << VIRTIO_F_VERSION_1
219 | | | 1 << VIRTIO_RING_F_INDIRECT_DESC
220 | | | 1 << VIRTIO_RING_F_EVENT_IDX
| |__________________________________________^
|
= help: for further information visit
https://rust-lang.github.io/rust-clippy/master/index.html#precedence
= note: `-D clippy::precedence` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::precedence)]`
help: consider parenthesizing your expression
|
218 ~ 1 << VIRTIO_F_VERSION_1
219 + | 1 << VIRTIO_RING_F_INDIRECT_DESC | (1 <<
VIRTIO_RING_F_EVENT_IDX)
|
error: operator precedence can trip the unwary
--> src/virtiofs.rs:218:9
|
218 | / 1 << VIRTIO_F_VERSION_1
219 | | | 1 << VIRTIO_RING_F_INDIRECT_DESC
| |______________________________________________^ help: consider
parenthesizing your expression: `(1 << VIRTIO_F_VERSION_1) | (1 <<
VIRTIO_RING_F_INDIRECT_DESC)`
|
= help: for further information visit
https://rust-lang.github.io/rust-clippy/master/index.html#precedence
```
The error doesn't seem to be related to my submission. I don't quite
understand why this error is reported. Can you give me some suggestions?
@Xuanwo @meteorgan
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]