cloud-hypervisor/vhost_user_block
Philipp Schuster eb0b14f70e misc: vhost_user_block: streamline #[source] and Error
This streamlines the code base to follow best practices for
error handling in Rust: Each error struct implements
std::error::Error (most due via thiserror::Error derive macro)
and sets its source accordingly.

This allows future work that nicely prints the error chains,
for example.

So far, the convention is that each error prints its
sub error as part of its Display::fmt() impl.

Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
On-behalf-of: SAP philipp.schuster@sap.com
2025-05-21 09:09:30 +00:00
..
src misc: vhost_user_block: streamline #[source] and Error 2025-05-21 09:09:30 +00:00
Cargo.toml misc: vhost_user_block: streamline #[source] and Error 2025-05-21 09:09:30 +00:00