Skip to content

Commit

Permalink
resolve linting errors (clippy)
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicalNinjaDad committed Apr 9, 2024
1 parent 1d772d2 commit 07946d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyo3-testing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ use proc_macro2::{Span, TokenStream as TokenStream2};
use quote::quote;
use syn::Ident;


#[allow(dead_code)] // Not yet fully implemented
fn import_pyo3_from(import: Pyo3Import, input: TokenStream2) -> TokenStream2 {
let moduleident = import.moduleidentifier;
let pymoduleident = Ident::new(&import.modulename, Span::mixed_site());
let modulename = import.modulename;
let modulerror = "Failed to import ".to_string() + &modulename;
let functionname = import.functionname;
let functionerror = "Failed to get ".to_string() + &functionname + &" function".to_string();
let functionerror = "Failed to get ".to_string() + &functionname + " function";

quote!(
pyo3::append_to_inittab!(#moduleident);
Expand Down

0 comments on commit 07946d1

Please sign in to comment.