Skip to content

Commit 5e4192f

Browse files
committed
Clippy happy, tests passing
1 parent 5c29b2a commit 5e4192f

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ named `BASENAME.ef`.
8383

8484
Then, to load the graph you need to call
8585

86-
```[ignore]
86+
```ignore
8787
let graph = BVGraph::with_basename("BASENAME").load()?;
8888
```
8989

@@ -96,7 +96,7 @@ Once you load the graph, you can [retrieve the successors of a node] or
9696
[iterate on the whole graph]. In particular, using the handy [`for_`] macro,
9797
you can write an iteration on the graph as
9898

99-
```[ignore]
99+
```ignore
100100
for_!((src, succ) in graph {
101101
for dst in succ {
102102
[do something with the arc src -> dst]

src/algo/llp/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ use std::collections::HashMap;
4545
use std::collections::VecDeque;
4646
use std::sync::atomic::Ordering;
4747
use std::sync::atomic::{AtomicBool, AtomicU64, AtomicUsize};
48-
use sux::traits::IndexedDict;
4948
use sux::traits::Succ;
5049
use tempfile::tempdir;
5150

src/cli/build/ef.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ where
9898
let mut pl = ProgressLogger::default();
9999
pl.display_memory(true);
100100
pl.start("Building the Index over the ones in the high-bits...");
101-
let ef: EF =
102-
unsafe { ef.map_high_bits(|bits| SelectAdaptConst::<_, _, 12, 4>::new(bits)) };
101+
let ef: EF = unsafe { ef.map_high_bits(SelectAdaptConst::<_, _, 12, 4>::new) };
103102
pl.done();
104103

105104
let mut pl = ProgressLogger::default();
@@ -198,7 +197,7 @@ where
198197
let mut pl = ProgressLogger::default();
199198
pl.display_memory(true);
200199
pl.start("Building the Index over the ones in the high-bits...");
201-
let ef: EF = unsafe { ef.map_high_bits(|bits| SelectAdaptConst::<_, _, 12, 4>::new(bits)) };
200+
let ef: EF = unsafe { ef.map_high_bits(SelectAdaptConst::<_, _, 12, 4>::new) };
202201
pl.done();
203202

204203
let mut pl = ProgressLogger::default();

src/graphs/bvgraph/codecs/dec_const.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use anyhow::bail;
1212
use anyhow::Result;
1313
use dsi_bitstream::prelude::*;
1414
use epserde::deser::MemCase;
15-
use sux::traits::IndexedDict;
1615
use sux::traits::IndexedSeq;
1716

1817
/// Temporary constants while const enum generics are not stable

src/graphs/bvgraph/codecs/dec_dyn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use super::super::*;
1111
use anyhow::bail;
1212
use dsi_bitstream::prelude::*;
1313
use epserde::deser::MemCase;
14-
use sux::traits::{IndexedDict, IndexedSeq};
14+
use sux::traits::IndexedSeq;
1515

1616
#[derive(Debug, Clone)]
1717
pub struct DynCodesDecoder<E: Endianness, CR: CodeRead<E>> {

src/graphs/bvgraph/codecs/factories.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ use std::{
3636
marker::PhantomData,
3737
path::Path,
3838
};
39-
use sux::traits::{IndexedDict, IndexedSeq, Types};
39+
use sux::traits::{IndexedSeq, Types};
4040

4141
use crate::utils::MmapHelper;
4242

tests/data/cnr-2000.ef

-39 KB
Binary file not shown.

0 commit comments

Comments
 (0)