From 339b6378a7f5bb6d9e182c58c76b857d04db8ee3 Mon Sep 17 00:00:00 2001 From: Millie Chen Date: Fri, 11 Feb 2022 14:16:20 -0800 Subject: [PATCH] fix lint in hh_fanout/*.rs Summary: automatic lint fixes in hh_fanout/hh_fanout_build_rust/build.rs Reviewed By: edwinsmith Differential Revision: D34176607 fbshipit-source-id: 9e9486b9797544f4f574f20422988c158739af4c --- hphp/hack/src/hh_fanout/hh_fanout_build_rust/build.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hphp/hack/src/hh_fanout/hh_fanout_build_rust/build.rs b/hphp/hack/src/hh_fanout/hh_fanout_build_rust/build.rs index 85a01f6ebf0..6e94d428b4c 100644 --- a/hphp/hack/src/hh_fanout/hh_fanout_build_rust/build.rs +++ b/hphp/hack/src/hh_fanout/hh_fanout_build_rust/build.rs @@ -29,7 +29,7 @@ impl EdgesDir { .map(|res| { res.and_then(|entry| { let path = entry.path(); - if path.extension().and_then(|x| x.to_str()) == Some(&"bin") { + if path.extension().and_then(|x| x.to_str()) == Some("bin") { let fh = fs::OpenOptions::new().read(true).open(&entry.path())?; Ok(Some(BufReader::new(fh))) } else { @@ -145,7 +145,7 @@ impl Edges { for x in dependents.iter() { dependents_vec.push(*x); } - dependents_vec.sort(); + dependents_vec.sort_unstable(); new_map.insert(*dependency, dependents_vec); } new_map @@ -158,7 +158,7 @@ impl Edges { for hash_set in self.hashes.iter() { hash_set.lock().iter().copied().for_each(|h| hashes.push(h)); } - hashes.sort(); + hashes.sort_unstable(); hashes } -- 2.11.4.GIT