Skip to content

Commit 1649ba8

Browse files
committed
Fix clippy warnings
1 parent 9eb9af8 commit 1649ba8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ fn parse_args() -> Args {
270270
let script;
271271
let script_args: Vec<String>;
272272
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());
274274
script_args = if script_and_args.len() > 1 {
275275
Vec::from_iter(script_and_args[1..].iter().map(|s| s.to_string()))
276276
} else {
@@ -719,7 +719,7 @@ impl InputAction {
719719
) -> MainResult<Command> {
720720
cargo(
721721
build_kind,
722-
&*self.manifest_path().to_string_lossy(),
722+
&self.manifest_path().to_string_lossy(),
723723
self.toolchain_version.as_deref(),
724724
&self.metadata,
725725
script_args,

src/manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ fn scrape_markdown_manifest(content: &str) -> Option<String> {
715715
}
716716
Event::Text(ref text) if found => {
717717
let s = output.get_or_insert(String::new());
718-
s.push_str(&*text);
718+
s.push_str(text);
719719
}
720720
Event::End(Tag::CodeBlock(_)) if found => {
721721
found = false;

0 commit comments

Comments
 (0)