From c52a14eac6532ba814c88f2c8c740415293bfb1a Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Sun, 4 Dec 2022 12:18:52 -0800 Subject: [PATCH] Remove an unused import warning on recent versions of Rust This warning used to show up, at least, on Rust nightly: unused import: `crate::nightly_shims::BTreeSetExt` --- lib/src/index.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/index.rs b/lib/src/index.rs index 4c81d163b..29c61ae38 100644 --- a/lib/src/index.rs +++ b/lib/src/index.rs @@ -33,6 +33,9 @@ use crate::backend::{ChangeId, CommitId}; use crate::commit::Commit; use crate::file_util::persist_content_addressed_temp_file; #[cfg(not(feature = "map_first_last"))] +// This import is used on Rust 1.60, but not on recent version. +// TODO: Remove it when our MSRV becomes recent enough. +#[allow(unused_imports)] use crate::nightly_shims::BTreeSetExt; #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)]