File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ fn parse_args() -> Args {
270
270
let script;
271
271
let script_args: Vec < String > ;
272
272
if let Some ( script_and_args) = script_and_args {
273
- script = script_and_args. get ( 0 ) . map ( |s| s. to_string ( ) ) ;
273
+ script = script_and_args. first ( ) . map ( |s| s. to_string ( ) ) ;
274
274
script_args = if script_and_args. len ( ) > 1 {
275
275
Vec :: from_iter ( script_and_args[ 1 ..] . iter ( ) . map ( |s| s. to_string ( ) ) )
276
276
} else {
@@ -719,7 +719,7 @@ impl InputAction {
719
719
) -> MainResult < Command > {
720
720
cargo (
721
721
build_kind,
722
- & * self . manifest_path ( ) . to_string_lossy ( ) ,
722
+ & self . manifest_path ( ) . to_string_lossy ( ) ,
723
723
self . toolchain_version . as_deref ( ) ,
724
724
& self . metadata ,
725
725
script_args,
Original file line number Diff line number Diff line change @@ -715,7 +715,7 @@ fn scrape_markdown_manifest(content: &str) -> Option<String> {
715
715
}
716
716
Event :: Text ( ref text) if found => {
717
717
let s = output. get_or_insert ( String :: new ( ) ) ;
718
- s. push_str ( & * text) ;
718
+ s. push_str ( text) ;
719
719
}
720
720
Event :: End ( Tag :: CodeBlock ( _) ) if found => {
721
721
found = false ;
You can’t perform that action at this time.
0 commit comments