Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
qalisander committed Sep 11, 2024
1 parent 94ed516 commit 252264f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion contracts-proc/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::mem;
use convert_case::{Case, Casing};
use proc_macro::TokenStream;
use proc_macro2::Ident;
use quote::{quote, ToTokens};
use quote::quote;
use syn::{
parse::{Parse, ParseStream},
parse_macro_input, FnArg, ItemTrait, LitStr, Result, Token, TraitItem,
Expand Down
1 change: 0 additions & 1 deletion contracts-proc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

extern crate proc_macro;

Check warning on line 3 in contracts-proc/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] contracts-proc/src/lib.rs#L3

warning: missing documentation for the crate --> contracts-proc/src/lib.rs:3:1 | 3 | / extern crate proc_macro; 4 | | use proc_macro::TokenStream; 5 | | 6 | | /// Shorthand to print nice errors. ... | 22 | | interface::interface(attr, input) 23 | | } | |_^ | = note: requested on the command line with `-W missing-docs`
Raw output
contracts-proc/src/lib.rs:3:1:w:warning: missing documentation for the crate
  --> contracts-proc/src/lib.rs:3:1
   |
3  | / extern crate proc_macro;
4  | | use proc_macro::TokenStream;
5  | |
6  | | /// Shorthand to print nice errors.
...  |
22 | |     interface::interface(attr, input)
23 | | }
   | |_^
   |
   = note: requested on the command line with `-W missing-docs`


__END__

Check warning on line 3 in contracts-proc/src/lib.rs

View workflow job for this annotation

GitHub Actions / clippy

[clippy] contracts-proc/src/lib.rs#L3

warning: missing documentation for the crate --> contracts-proc/src/lib.rs:3:1 | 3 | / extern crate proc_macro; 4 | | use proc_macro::TokenStream; 5 | | 6 | | /// Shorthand to print nice errors. ... | 22 | | interface::interface(attr, input) 23 | | } | |_^ | = note: requested on the command line with `-W missing-docs`
Raw output
contracts-proc/src/lib.rs:3:1:w:warning: missing documentation for the crate
  --> contracts-proc/src/lib.rs:3:1
   |
3  | / extern crate proc_macro;
4  | | use proc_macro::TokenStream;
5  | |
6  | | /// Shorthand to print nice errors.
...  |
22 | |     interface::interface(attr, input)
23 | | }
   | |_^
   |
   = note: requested on the command line with `-W missing-docs`


__END__
use proc_macro::TokenStream;
use syn::parse::Parse;

/// Shorthand to print nice errors.
macro_rules! error {
Expand Down
9 changes: 3 additions & 6 deletions examples/erc721/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ use alloc::vec::Vec;

use alloy_primitives::{Address, FixedBytes, U256};
use openzeppelin_stylus::{
token::{
erc20::{Erc20, IErc20},
erc721::{
extensions::{Erc721Enumerable as Enumerable, IErc721Burnable},
Erc721, IErc721,
},
token::erc721::{
extensions::{Erc721Enumerable as Enumerable, IErc721Burnable},
Erc721, IErc721,
},
utils::Pausable,
};
Expand Down

0 comments on commit 252264f

Please sign in to comment.