ok/jj
1
0
Fork 0
forked from mirrors/jj

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`
This commit is contained in:
Ilya Grigoriev 2022-12-04 12:18:52 -08:00
parent e17fc89a8d
commit c52a14eac6

View file

@ -33,6 +33,9 @@ use crate::backend::{ChangeId, CommitId};
use crate::commit::Commit; use crate::commit::Commit;
use crate::file_util::persist_content_addressed_temp_file; use crate::file_util::persist_content_addressed_temp_file;
#[cfg(not(feature = "map_first_last"))] #[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; use crate::nightly_shims::BTreeSetExt;
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)] #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Hash)]