Skip to content

Commit 170baa2

Browse files
SUPERCILEXjamesmth
authored andcommitted
Fix lints
Signed-off-by: Alex Saveau <[email protected]>
1 parent de1975b commit 170baa2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm-plugin/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ mod llvm_sys {
9898
fn locate_llvm_config() -> Option<PathBuf> {
9999
let prefix = env::var_os(&*ENV_LLVM_PREFIX)
100100
.map(|p| PathBuf::from(p).join("bin"))
101-
.unwrap_or_else(PathBuf::new);
101+
.unwrap_or_default();
102102
for binary_name in llvm_config_binary_names() {
103103
let binary_name = prefix.join(binary_name);
104104
match llvm_version(&binary_name) {

llvm-plugin/src/analysis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl FunctionAnalysisManager {
125125
}
126126

127127
Box::into_raw(pass);
128-
#[allow(clippy::forget_copy)]
128+
#[allow(forgetting_copy_types)]
129129
std::mem::forget(function);
130130
}
131131

llvm-plugin/src/pass_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl FunctionPassManager {
111111
let preserve = pass.run_pass(&mut function, &manager);
112112

113113
Box::into_raw(pass);
114-
#[allow(clippy::forget_copy)]
114+
#[allow(forgetting_copy_types)]
115115
std::mem::forget(function);
116116

117117
preserve

0 commit comments

Comments
 (0)