refactor: Extract ruff_wasm (#3401)

This commit is contained in:
Micha Reiser 2023-03-09 11:07:39 +01:00 committed by GitHub
parent a7f3532395
commit 229f1c34cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 193 additions and 181 deletions

View file

@ -66,12 +66,12 @@ pub fn expand<'a>(
}
impl std::str::FromStr for #prefix_ident {
type Err = FromCodeError;
type Err = crate::registry::FromCodeError;
fn from_str(code: &str) -> Result<Self, Self::Err> {
match code {
#(#attributes #variant_strs => Ok(Self::#variant_idents),)*
_ => Err(FromCodeError::Unknown)
_ => Err(crate::registry::FromCodeError::Unknown)
}
}
}