This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
feat: controller update rate constant #795
Annotations
3 errors and 1 warning
Run giraffate/clippy-action@v1:
packages/vex-devices/src/smart/motor.rs#L424
[clippy] reported by reviewdog 🐶
error[E0277]: the trait bound `*mut vex_sdk::V5_DeviceMotorPid: core::convert::From<smart::motor::MotorTuningConstants>` is not satisfied
--> packages/vex-devices/src/smart/motor.rs:424:79
|
424 | unsafe { vexDeviceMotorVelocityPidSet(self.device_handle(), constants.into()) }
| ^^^^ the trait `core::convert::From<smart::motor::MotorTuningConstants>` is not implemented for `*mut vex_sdk::V5_DeviceMotorPid`, which is required by `smart::motor::MotorTuningConstants: core::convert::Into<_>`
|
= help: the trait `core::convert::From<smart::motor::MotorTuningConstants>` is implemented for `vex_sdk::V5_DeviceMotorPid`
= help: for that trait implementation, expected `vex_sdk::V5_DeviceMotorPid`, found `*mut vex_sdk::V5_DeviceMotorPid`
= note: required for `smart::motor::MotorTuningConstants` to implement `core::convert::Into<*mut vex_sdk::V5_DeviceMotorPid>`
Raw Output:
packages/vex-devices/src/smart/motor.rs:424:79:e:error[E0277]: the trait bound `*mut vex_sdk::V5_DeviceMotorPid: core::convert::From<smart::motor::MotorTuningConstants>` is not satisfied
--> packages/vex-devices/src/smart/motor.rs:424:79
|
424 | unsafe { vexDeviceMotorVelocityPidSet(self.device_handle(), constants.into()) }
| ^^^^ the trait `core::convert::From<smart::motor::MotorTuningConstants>` is not implemented for `*mut vex_sdk::V5_DeviceMotorPid`, which is required by `smart::motor::MotorTuningConstants: core::convert::Into<_>`
|
= help: the trait `core::convert::From<smart::motor::MotorTuningConstants>` is implemented for `vex_sdk::V5_DeviceMotorPid`
= help: for that trait implementation, expected `vex_sdk::V5_DeviceMotorPid`, found `*mut vex_sdk::V5_DeviceMotorPid`
= note: required for `smart::motor::MotorTuningConstants` to implement `core::convert::Into<*mut vex_sdk::V5_DeviceMotorPid>`
__END__
|
Run giraffate/clippy-action@v1:
packages/vex-devices/src/smart/motor.rs#L447
[clippy] reported by reviewdog 🐶
error[E0277]: the trait bound `*mut vex_sdk::V5_DeviceMotorPid: core::convert::From<smart::motor::MotorTuningConstants>` is not satisfied
--> packages/vex-devices/src/smart/motor.rs:447:79
|
447 | unsafe { vexDeviceMotorPositionPidSet(self.device_handle(), constants.into()) }
| ^^^^ the trait `core::convert::From<smart::motor::MotorTuningConstants>` is not implemented for `*mut vex_sdk::V5_DeviceMotorPid`, which is required by `smart::motor::MotorTuningConstants: core::convert::Into<_>`
|
= help: the trait `core::convert::From<smart::motor::MotorTuningConstants>` is implemented for `vex_sdk::V5_DeviceMotorPid`
= help: for that trait implementation, expected `vex_sdk::V5_DeviceMotorPid`, found `*mut vex_sdk::V5_DeviceMotorPid`
= note: required for `smart::motor::MotorTuningConstants` to implement `core::convert::Into<*mut vex_sdk::V5_DeviceMotorPid>`
Raw Output:
packages/vex-devices/src/smart/motor.rs:447:79:e:error[E0277]: the trait bound `*mut vex_sdk::V5_DeviceMotorPid: core::convert::From<smart::motor::MotorTuningConstants>` is not satisfied
--> packages/vex-devices/src/smart/motor.rs:447:79
|
447 | unsafe { vexDeviceMotorPositionPidSet(self.device_handle(), constants.into()) }
| ^^^^ the trait `core::convert::From<smart::motor::MotorTuningConstants>` is not implemented for `*mut vex_sdk::V5_DeviceMotorPid`, which is required by `smart::motor::MotorTuningConstants: core::convert::Into<_>`
|
= help: the trait `core::convert::From<smart::motor::MotorTuningConstants>` is implemented for `vex_sdk::V5_DeviceMotorPid`
= help: for that trait implementation, expected `vex_sdk::V5_DeviceMotorPid`, found `*mut vex_sdk::V5_DeviceMotorPid`
= note: required for `smart::motor::MotorTuningConstants` to implement `core::convert::Into<*mut vex_sdk::V5_DeviceMotorPid>`
__END__
|
Run giraffate/clippy-action@v1
reviewdog exited with status code: 1
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, giraffate/clippy-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading