vhost_user_net: fix some comments style in lib.rs

Fix the comments style to make them consistent.

Signed-off-by: Ziye Yang <ziye.yang@intel.com>
This commit is contained in:
Ziye Yang 2021-11-30 07:39:19 +00:00 committed by Sebastien Boeuf
parent ac25172176
commit bc827ee3be

View File

@ -31,9 +31,9 @@ type VhostUserBackendResult<T> = std::result::Result<T, std::io::Error>;
#[derive(Debug)] #[derive(Debug)]
pub enum Error { pub enum Error {
/// Failed to create kill eventfd /// Failed to create kill eventfd.
CreateKillEventFd(io::Error), CreateKillEventFd(io::Error),
/// Failed to parse configuration string /// Failed to parse configuration string.
FailedConfigParse(OptionParserError), FailedConfigParse(OptionParserError),
/// Failed to signal used queue. /// Failed to signal used queue.
FailedSignalingUsedQueue(io::Error), FailedSignalingUsedQueue(io::Error),
@ -41,13 +41,13 @@ pub enum Error {
HandleEventNotEpollIn, HandleEventNotEpollIn,
/// Failed to handle unknown event. /// Failed to handle unknown event.
HandleEventUnknownEvent, HandleEventUnknownEvent,
/// Open tap device failed. /// Failed to open tap device.
OpenTap(OpenTapError), OpenTap(OpenTapError),
/// No socket provided /// No socket provided.
SocketParameterMissing, SocketParameterMissing,
/// Underlying QueuePair error /// Underlying QueuePair error.
NetQueuePair(net_util::NetQueuePairError), NetQueuePair(net_util::NetQueuePairError),
/// Failed registering the TAP listener /// Failed to register the TAP listener.
RegisterTapListener(io::Error), RegisterTapListener(io::Error),
} }