Skip to content

Commit bfc46d8

Browse files
WofWcalink2xt
authored andcommitted
refactor: fix cargo clippy warnings
1 parent f68c397 commit bfc46d8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

yerpc-derive/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,20 @@ pub(crate) mod util;
2525
///
2626
/// ### Root Attribute Arguments:
2727
/// - `all_positional: bool` Positional mode means that the parameters of the RPC call are expected to be a JSON array,
28-
/// which will be parsed as a tuple of this function's arguments.
28+
/// which will be parsed as a tuple of this function's arguments.
2929
/// - `ts_outdir: Option<String>` Set the path where typescript definitions are written to (relative to the crate root).
30-
/// If not set, no typescript definitions will be written.
30+
/// If not set, no typescript definitions will be written.
3131
/// - `openrpc_outdir: Option<String>` Set the path where openrpc specification file will be written to (relative to the crate root).
32-
/// If not set, no openrpc definition file will be written.
32+
/// If not set, no openrpc definition file will be written.
3333
///
3434
/// Note that you need to specify atleast one type definition output: `ts_outdir`, `openrpc_outdir` or both.
3535
///
3636
/// ### Method Attribute Arguments:
3737
/// - `name: Option<String>` Set the name of the RPC method. Defaults to the function name.
3838
/// - `notification: bool` Make this a notification method. Notifications are received like method calls but cannot
39-
/// return anything.
39+
/// return anything.
4040
/// - `positional: bool` Positional mode means that the parameters of the RPC call are expected to be a JSON array,
41-
/// which will be parsed as a tuple of this function's arguments.
41+
/// which will be parsed as a tuple of this function's arguments.
4242
#[proc_macro_attribute]
4343
pub fn rpc(attr: TokenStream, tokens: TokenStream) -> TokenStream {
4444
let item = parse_macro_input!(tokens as Item);

yerpc/src/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<'a> Deserialize<'a> for Version {
4949

5050
struct VersionVisitor;
5151

52-
impl<'a> Visitor<'a> for VersionVisitor {
52+
impl Visitor<'_> for VersionVisitor {
5353
type Value = Version;
5454

5555
fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {

0 commit comments

Comments
 (0)