mirror of https://github.com/zkat/cacache-rs.git
feat(ls): cacache::ls::all -> ls::all_sync
BREAKING CHANGE: In order to match up with the other APIs, the ls::all() has been renamed to ls::all_sync().
This commit is contained in:
parent
a040a743a8
commit
c430016744
|
|
@ -3,7 +3,7 @@ use std::path::Path;
|
||||||
|
|
||||||
use crate::index;
|
use crate::index;
|
||||||
|
|
||||||
/// Returns an iterator that lists all cache index entries.
|
/// Returns a synchronous iterator that lists all cache index entries.
|
||||||
pub fn all<P: AsRef<Path>>(cache: P) -> impl Iterator {
|
pub fn all_sync<P: AsRef<Path>>(cache: P) -> impl Iterator {
|
||||||
index::ls(cache.as_ref())
|
index::ls(cache.as_ref())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue