Clippy fixes from rust 1.91 nightly (#1267)
This commit is contained in:
@@ -90,7 +90,7 @@ impl<'a> Runner<'a> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn report(&self) -> &Report {
|
||||
pub fn report(&self) -> &Report<'_> {
|
||||
&self.report
|
||||
}
|
||||
}
|
||||
|
||||
@@ -896,7 +896,7 @@ pub fn run_composer_update(ctx: &ExecutionContext) -> Result<()> {
|
||||
let composer_home = Command::new(&composer)
|
||||
.args(["global", "config", "--absolute", "--quiet", "home"])
|
||||
.output_checked_utf8()
|
||||
.map_err(|e| (SkipStep(t!("Error getting the composer directory: {error}", error = e).to_string())))
|
||||
.map_err(|e| SkipStep(t!("Error getting the composer directory: {error}", error = e).to_string()))
|
||||
.map(|s| PathBuf::from(s.stdout.trim()))?
|
||||
.require()?;
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ pub mod merge_strategies {
|
||||
if let Some(left_vec) = left {
|
||||
if let Some(mut right_vec) = right {
|
||||
right_vec.append(left_vec);
|
||||
let _ = std::mem::replace(left, Some(right_vec));
|
||||
let _ = left.replace(right_vec);
|
||||
}
|
||||
} else {
|
||||
*left = right;
|
||||
|
||||
Reference in New Issue
Block a user