Skip to content

Commit

Permalink
cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepySkeleton committed Apr 11, 2020
1 parent fcf32e6 commit 53ab740
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/build/arg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,22 +98,22 @@ impl<'help> Arg<'help> {

/// Get the help specified for this argument, if any
pub fn get_help(&self) -> Option<&str> {
self.help.clone()
self.help
}

/// Get the help heading specified for this argument, if any
pub fn get_help_heading(&self) -> Option<&str> {
self.help.clone()
self.help
}

/// Get the short option name for this argument, if any
pub fn get_short(&self) -> Option<char> {
self.short.clone()
self.short
}

/// Get the long option name for this argument, if any
pub fn get_long(&self) -> Option<&str> {
self.long.clone()
self.long
}

/// Get the list of the possible values for this argument, if any
Expand Down

1 comment on commit 53ab740

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 53ab740 Previous: 9060e3e Ratio
build_empty 106 ns/iter (± 2) 105 ns/iter (± 2) 1.01
parse_empty 1019 ns/iter (± 21) 1052 ns/iter (± 20) 0.97
parse_simple_with_complex 4305 ns/iter (± 72) 4262 ns/iter (± 138) 1.01
parse_simple_with_pos 3309 ns/iter (± 27) 3160 ns/iter (± 51) 1.05
parse_simple_with_opt 3644 ns/iter (± 70) 3432 ns/iter (± 86) 1.06
parse_simple_with_flag 3162 ns/iter (± 40) 2957 ns/iter (± 30) 1.07
build_with_pos_ref 240 ns/iter (± 6) 229 ns/iter (± 2) 1.05
build_with_pos 182 ns/iter (± 3) 205 ns/iter (± 3) 0.89
build_with_opt_ref 378 ns/iter (± 4) 352 ns/iter (± 6) 1.07
build_with_opt 286 ns/iter (± 4) 298 ns/iter (± 3) 0.96
build_with_flag_ref 321 ns/iter (± 4) 304 ns/iter (± 3) 1.06
build_with_flag 244 ns/iter (± 5) 256 ns/iter (± 3) 0.95
build_simple 875 ns/iter (± 18) 801 ns/iter (± 13) 1.09
build_from_usage 4816 ns/iter (± 49) 4819 ns/iter (± 82) 1.00
build_from_builder 2898 ns/iter (± 62) 3224 ns/iter (± 40) 0.90
build_from_macros 2886 ns/iter (± 62) 2828 ns/iter (± 50) 1.02
parse_complex 7864 ns/iter (± 143) 7622 ns/iter (± 109) 1.03
parse_complex_with_flag 9102 ns/iter (± 156) 9204 ns/iter (± 176) 0.99
parse_complex_with_opt 9374 ns/iter (± 127) 9187 ns/iter (± 112) 1.02
parse_complex_with_pos 9074 ns/iter (± 114) 9245 ns/iter (± 180) 0.98
parse_complex_with_sc 11090 ns/iter (± 247) 10637 ns/iter (± 195) 1.04
parse_complex_with_sc_flag 11950 ns/iter (± 142) 12284 ns/iter (± 209) 0.97
parse_complex_with_sc_opt 13377 ns/iter (± 220) 12012 ns/iter (± 147) 1.11
parse_complex_with_sc_pos 11949 ns/iter (± 234) 12211 ns/iter (± 297) 0.98
parse_complex1 15578 ns/iter (± 307) 16260 ns/iter (± 463) 0.96
parse_complex2 16907 ns/iter (± 246) 18326 ns/iter (± 693) 0.92
parse_args_negate_scs 16391 ns/iter (± 258) 17769 ns/iter (± 423) 0.92
parse_complex_with_sc_complex 13229 ns/iter (± 310) 14502 ns/iter (± 241) 0.91
example1 10867 ns/iter (± 187) 19550 ns/iter (± 444) 0.56
example2 465291 ns/iter (± 21846) 358903 ns/iter (± 36138) 1.30
example3 6062 ns/iter (± 97) 18824 ns/iter (± 283) 0.32
example4 5710 ns/iter (± 369) 13289 ns/iter (± 228) 0.43
example5 464996 ns/iter (± 40964) 468609 ns/iter (± 40920) 0.99
example6 5720 ns/iter (± 197) 10316 ns/iter (± 109) 0.55
example7 5621 ns/iter (± 75) 14597 ns/iter (± 316) 0.39
example8 5648 ns/iter (± 120) 14432 ns/iter (± 124) 0.39
example10 413607 ns/iter (± 39758) 403129 ns/iter (± 37960) 1.03
example4_template 5052 ns/iter (± 84) 12226 ns/iter (± 200) 0.41
build_rg_with_short_help 13469 ns/iter (± 217) 12615 ns/iter (± 341) 1.07
build_rg_with_long_help 13666 ns/iter (± 148) 13552 ns/iter (± 216) 1.01
write_rg_short_help 113447 ns/iter (± 2262) 111484 ns/iter (± 2568) 1.02
write_rg_long_help 275417 ns/iter (± 9059) 258942 ns/iter (± 4412) 1.06
parse_rg 28003 ns/iter (± 511) 25832 ns/iter (± 256) 1.08
parse_rg_with_complex 39284 ns/iter (± 708) 37500 ns/iter (± 477) 1.05
parse_rg_with_lots 888192 ns/iter (± 19522) 892319 ns/iter (± 16010) 1.00
build_rustup 14419 ns/iter (± 436) 16585 ns/iter (± 319) 0.87
parse_rustup 17590 ns/iter (± 341) 18957 ns/iter (± 242) 0.93
parse_rustup_with_sc 17574 ns/iter (± 288) 19233 ns/iter (± 267) 0.91

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.