Add --derive-for-type to cli (#708)

* Add `--derive-for-type` to cli

* Remove clippy warnings
This commit is contained in:
Francisco Miguel García authored and GitHub committed 2022-11-23 15:25:32 +00:00
1 parent 702e87e58d
commit a80d6cfd30
6 files changed
+41 -21

No files matched your search

@@ -52,9 +52,9 @@ impl MetadataTestRunner {
std::fs::create_dir_all(&tmp_dir).expect("could not create tmp ui test dir");
// Write metadata to tmp folder:
std::fs::write(&tmp_metadata_path, &encoded_metadata).unwrap();
std::fs::write(&tmp_metadata_path, encoded_metadata).unwrap();
// Write test file to tmp folder (it'll be moved by trybuild):
std::fs::write(&tmp_rust_path, &rust_file).unwrap();
std::fs::write(&tmp_rust_path, rust_file).unwrap();
tmp_rust_path
}