mirror of
https://github.com/servo/servo
synced 2026-04-26 17:45:19 +02:00
script: Finish converting all error message enum variants to Option<String> (#40750)
I used find and replace to finish the job. All this PR does is replace all `Error::<error_name>` occurrences with `Error::<error_name>(None)`. Testing: Refactor Fixes: #39053 Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
@@ -109,7 +109,7 @@ impl CSSMethods<crate::DomTypeHolder> for CSS {
|
||||
RegisterPropertyError::InitialValueNotComputationallyIndependent => {
|
||||
Error::Syntax(None)
|
||||
},
|
||||
RegisterPropertyError::AlreadyRegistered => Error::InvalidModification,
|
||||
RegisterPropertyError::AlreadyRegistered => Error::InvalidModification(None),
|
||||
})?;
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user