mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2025-12-27 07:29:24 +00:00
The funcs() implementation is buggy as it doesn't take "func" by reference and it only defaults to SMBUS and hence the I2C protocol is never chosen as a function. Since the value of "func" is never required to be set by the caller, it shouldn't be passed as argument in the first place. Make the function return Result<u64> instead. The test test_funcs() was failing before this change and passes after it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> |
||
|---|---|---|
| .cargo | ||
| .github | ||
| rust-vmm-ci@7931077cdc | ||
| src/i2c | ||
| .gitignore | ||
| .gitmodules | ||
| Cargo.lock | ||
| Cargo.toml | ||
| CODEOWNERS | ||
| coverage_config_x86_64.json | ||
| LICENSE-APACHE | ||
| README.md | ||