Skip to content

Commit f58b341

Browse files
committed
Auto merge of #6496 - k-nasa:delete_unnecessary_return, r=ehuss
Delete unnecessary 'return' Unnecessary return keyword deleted as it is also in the title
2 parents 9bf8592 + 3b244e2 commit f58b341

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cargo/core/compiler/context/compilation_files.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ pub struct OutputFile {
5353
impl OutputFile {
5454
/// Gets the hardlink if present. Otherwise returns the path.
5555
pub fn bin_dst(&self) -> &PathBuf {
56-
return match self.hardlink {
56+
match self.hardlink {
5757
Some(ref link_dst) => link_dst,
5858
None => &self.path,
59-
};
59+
}
6060
}
6161
}
6262

src/cargo/core/compiler/context/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
285285
return Ok(Option::Some(output.bin_dst().clone()));
286286
}
287287
}
288-
return Ok(None);
288+
Ok(None)
289289
}
290290

291291
pub fn prepare_units(

0 commit comments

Comments
 (0)