Skip to content

Commit b03fc22

Browse files
committed
Clippy fixes
1 parent ed85f10 commit b03fc22

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

build2cmake/src/torch/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub fn write_pyproject_toml(
9999

100100
pub fn write_metadata(general: &General, file_set: &mut FileSet) -> Result<()> {
101101
for backend in &Backend::all() {
102-
let writer = file_set.entry(format!("metadata-{}.json", backend.to_string()));
102+
let writer = file_set.entry(format!("metadata-{}.json", backend));
103103

104104
let python_depends = general
105105
.python_depends()

build2cmake/src/torch/deps.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ pub fn render_deps(env: &Environment, build: &Build, write: &mut impl Write) ->
8787
}
8888
Dependency::MetalCpp => {
8989
// TODO: add CMake dependency.
90-
()
9190
}
9291
Dependency::Torch => (),
9392
}

0 commit comments

Comments
 (0)