Rename: deref07() -> deref()

This commit is contained in:
Kitaiti Makoto 2022-05-03 01:22:02 +09:00
parent 9791607793
commit 9a640b3438

View File

@ -353,14 +353,14 @@ pub trait FromId<C>: Sized {
Ok(x) => Ok(x), Ok(x) => Ok(x),
_ => match object { _ => match object {
Some(o) => Self::from_activity07(ctx, o).map_err(|e| (None, e)), Some(o) => Self::from_activity07(ctx, o).map_err(|e| (None, e)),
None => Self::from_activity07(ctx, Self::deref07(id, proxy.cloned())?) None => Self::from_activity07(ctx, Self::deref(id, proxy.cloned())?)
.map_err(|e| (None, e)), .map_err(|e| (None, e)),
}, },
} }
} }
/// Dereferences an ID /// Dereferences an ID
fn deref07( fn deref(
id: &str, id: &str,
proxy: Option<reqwest::Proxy>, proxy: Option<reqwest::Proxy>,
) -> Result<Self::Object, (Option<serde_json::Value>, Self::Error)> { ) -> Result<Self::Object, (Option<serde_json::Value>, Self::Error)> {