cloud-hypervisor/net_util/src
Rob Bradford a4134f6b25 net_util: Remove unit error from Result
error: this returns a `Result<_, ()>
  --> net_util/src/mac.rs:68:5
   |
68 |     pub fn from_bytes(src: &[u8]) -> Result<MacAddr, ()> {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D clippy::result-unit-err` implied by `-D warnings`
   = help: use a custom Error type instead
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err

Replace with std::io::Error like other locations in the same file.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2021-01-04 13:46:37 +01:00
..
lib.rs virtio-devices, net_util: Migrate virtio-net to EpollHelper 2020-07-24 13:50:37 +02:00
mac.rs net_util: Remove unit error from Result 2021-01-04 13:46:37 +01:00
open_tap.rs net_util: Extend Tap::open_named() to take flags 2020-12-17 22:51:30 +01:00
queue_pair.rs virtio-devices, net_util: Migrate virtio-net to EpollHelper 2020-07-24 13:50:37 +02:00
tap.rs net_util: Remove unit error from Result 2021-01-04 13:46:37 +01:00