feat(get): get::info -> get::entry

BREAKING CHANGE: This renames get::info to get::entry for better symmetry with rm
This commit is contained in:
Kat Marchán 2019-10-18 16:28:15 -04:00
parent 7123ffa44b
commit dafc79f481
No known key found for this signature in database
GPG Key ID: AEB529C08A3C7E9E
1 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ where
}
/// Gets entry information and metadata for a certain key.
pub async fn info<P, K>(cache: P, key: K) -> Result<Option<Entry>, Error>
pub async fn entry<P, K>(cache: P, key: K) -> Result<Option<Entry>, Error>
where
P: AsRef<Path>,
K: AsRef<str>,
@ -439,7 +439,7 @@ where
}
/// Gets entry information and metadata for a certain key.
pub fn info_sync<P, K>(cache: P, key: K) -> Result<Option<Entry>, Error>
pub fn entry_sync<P, K>(cache: P, key: K) -> Result<Option<Entry>, Error>
where
P: AsRef<Path>,
K: AsRef<str>,