1
Fork 0

Use std::io::Error and remove useless to_string

This commit is contained in:
Adrian Tombu 2022-08-24 14:12:39 +02:00
parent e7ded9246c
commit 1c575c5fe0
No known key found for this signature in database
GPG key ID: 9CD8E979D3A943FE
3 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@ use rustc_macros::SessionDiagnostic;
#[derive(SessionDiagnostic)]
#[diag(driver::rlink_unable_to_read)]
pub(crate) struct RlinkUnableToRead {
pub error_message: String,
pub err: std::io::Error,
}
#[derive(SessionDiagnostic)]
@ -14,4 +14,4 @@ pub(crate) struct RlinkUnableToDeserialize {
#[derive(SessionDiagnostic)]
#[diag(driver::rlink_no_a_file)]
pub(crate) struct RlinkNotAFile {}
pub(crate) struct RlinkNotAFile;