We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4cd7ce commit b712d17Copy full SHA for b712d17
src/api.rs
@@ -273,7 +273,7 @@ pub async fn limit(
273
}
274
if account_limit
275
.rate
276
- .check_key(&origin_ip.into_inner())
+ .check_key(&origin_ip.to_string())
277
.is_err()
278
{
279
return Err(Error::TooManyRequests(Some(String::from(
@@ -407,12 +407,6 @@ impl fmt::Display for OriginIp {
407
408
409
410
-impl OriginIp {
411
- pub fn into_inner(self) -> String {
412
- self.0.to_string()
413
- }
414
-}
415
-
416
#[axum::async_trait]
417
impl<S: Send + Sync> FromRequestParts<S> for OriginIp {
418
type Rejection = Error;
0 commit comments