pub struct FixOutcome {
pub applied: Vec<AppliedFix>,
pub skipped: Vec<SkippedFix>,
pub remaining: LintReport,
pub changed_files: Vec<LintFile>,
pub errors: Vec<(LintFile, String)>,
}Expand description
The outcome of a fix_dir pass.
Fields§
§applied: Vec<AppliedFix>Fixes that were applied, in application order.
skipped: Vec<SkippedFix>Fixable drift detected but discarded by a guard, with the reason.
remaining: LintReportFormat-lint report re-run on the post-fix text (what still remains).
This reflects the in-memory post-fix text. When errors is non-empty
an intended write did not reach disk, so for those files the on-disk drift
still stands even though remaining shows it resolved — callers must treat
a non-empty errors as a failure (the CLI keys exit code 2 off it) rather
than trusting remaining/applied for the un-written files.
changed_files: Vec<LintFile>The files that were actually rewritten on disk.
errors: Vec<(LintFile, String)>I/O failures while writing fixes back: (file, error message). Non-empty
⇔ at least one intended write did not reach disk.
Implementations§
Source§impl FixOutcome
impl FixOutcome
Trait Implementations§
Source§impl Clone for FixOutcome
impl Clone for FixOutcome
Source§fn clone(&self) -> FixOutcome
fn clone(&self) -> FixOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FixOutcome
impl Debug for FixOutcome
Source§impl PartialEq for FixOutcome
impl PartialEq for FixOutcome
Source§impl Serialize for FixOutcome
impl Serialize for FixOutcome
impl StructuralPartialEq for FixOutcome
Auto Trait Implementations§
impl Freeze for FixOutcome
impl RefUnwindSafe for FixOutcome
impl Send for FixOutcome
impl Sync for FixOutcome
impl Unpin for FixOutcome
impl UnsafeUnpin for FixOutcome
impl UnwindSafe for FixOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more