Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion precompiles/macros/src/generation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub(crate) fn generate_statics(paths: &Vec<PrecompilePath>) -> Result<TokenStrea

for (i, path) in (0..num_precompiles).zip(paths) {
let symbol_name = Ident::new(&format!("{PRECOMPILE_SYMBOL_PREFIX}{i}"), Span::call_site());
let serializable_path = SerializablePath::from((*path).clone());
let serializable_path = SerializablePath::from(path);
let data = match serde_json::to_string(&serializable_path) {
Err(e) => {
return Err(syn::Error::new(
Expand Down
6 changes: 6 additions & 0 deletions precompiles/macros/src/precompile_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,9 @@ impl From<PrecompilePath> for SerializablePath {
Self(path.as_syn_path())
}
}

impl From<&PrecompilePath> for SerializablePath {
fn from(path: &PrecompilePath) -> Self {
Self(path.as_syn_path())
}
}