mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
1.65 clippy fixes
This commit is contained in:
parent
f0d6e418fa
commit
66a1ba00eb
53 changed files with 224 additions and 225 deletions
|
@ -3,7 +3,7 @@ use std::path::PathBuf;
|
|||
#[doc(hidden)]
|
||||
pub use pretty_assertions::assert_eq as _pretty_assert_eq;
|
||||
|
||||
#[derive(PartialEq)]
|
||||
#[derive(PartialEq, Eq)]
|
||||
pub struct DebugAsDisplay<T>(pub T);
|
||||
|
||||
impl<T: std::fmt::Display> std::fmt::Debug for DebugAsDisplay<T> {
|
||||
|
@ -31,7 +31,7 @@ impl TmpDir {
|
|||
let path = std::path::Path::new(dir);
|
||||
// ensure_empty_dir will fail if the dir doesn't already exist
|
||||
std::fs::create_dir_all(path).unwrap();
|
||||
remove_dir_all::ensure_empty_dir(&path).unwrap();
|
||||
remove_dir_all::ensure_empty_dir(path).unwrap();
|
||||
|
||||
let mut pathbuf = std::path::PathBuf::new();
|
||||
pathbuf.push(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue