You've already forked uutils-args
mirror of
https://github.com/uutils/uutils-args.git
synced 2026-06-10 16:13:08 -07:00
Merge pull request #124 from BenWiederhake/dev-fix-clippy
fix nightly clippy warnings
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ edition = "2021"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[lib]
|
||||
proc_macro = true
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
proc-macro2 = "1.0.81"
|
||||
|
||||
@@ -13,7 +13,6 @@ use crate::{
|
||||
pub struct Argument {
|
||||
pub ident: Ident,
|
||||
pub field: Option<syn::Type>,
|
||||
pub name: String,
|
||||
pub arg_type: ArgType,
|
||||
pub help: String,
|
||||
}
|
||||
@@ -41,7 +40,6 @@ pub fn parse_arguments_attr(attrs: &[Attribute]) -> ArgumentsAttr {
|
||||
|
||||
pub fn parse_argument(v: Variant) -> Vec<Argument> {
|
||||
let ident = v.ident;
|
||||
let name = ident.to_string();
|
||||
let attributes = get_arg_attributes(&v.attrs).unwrap();
|
||||
|
||||
// Return early because we don't need to check the fields if it's not used.
|
||||
@@ -94,7 +92,6 @@ pub fn parse_argument(v: Variant) -> Vec<Argument> {
|
||||
Argument {
|
||||
ident: ident.clone(),
|
||||
field: field.clone(),
|
||||
name: name.clone(),
|
||||
arg_type,
|
||||
help: arg_help,
|
||||
}
|
||||
|
||||
+2
-1
@@ -286,7 +286,7 @@ fn actions() {
|
||||
fn apply(&mut self, arg: Arg) {
|
||||
match arg {
|
||||
Arg::Message(m) => {
|
||||
self.last_message = m.clone();
|
||||
self.last_message.clone_from(&m);
|
||||
self.messages.push(m);
|
||||
}
|
||||
Arg::Send => self.send = true,
|
||||
@@ -617,6 +617,7 @@ fn empty_value() {
|
||||
Val(V),
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
struct Settings {}
|
||||
|
||||
impl Options<Arg> for Settings {
|
||||
|
||||
Reference in New Issue
Block a user