Skip to content

Commit 06e701f

Browse files
committed
chore: remove inline
1 parent f8a5ac6 commit 06e701f

21 files changed

Lines changed: 5 additions & 26 deletions

src/lookup/abstractapi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ impl ProviderResponse<AbstractApiResponse> for AbstractApiResponse {
8181
pub struct AbstractApi;
8282

8383
impl Provider for AbstractApi {
84-
#[inline]
8584
fn get_endpoint(&self, key: &Option<String>, target: &Option<IpAddr>) -> String {
8685
let key = match key {
8786
Some(k) => format!("?api_key={}", k),

src/lookup/freeipapi.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ impl ProviderResponse<FreeIpApiResponse> for FreeIpApiResponse {
5353
pub struct FreeIpApi;
5454

5555
impl Provider for FreeIpApi {
56-
#[inline]
5756
fn get_endpoint(&self, _key: &Option<String>, target: &Option<IpAddr>) -> String {
5857
let target = match target.map(|t| t.to_string()) {
5958
Some(t) => t,
@@ -62,7 +61,6 @@ impl Provider for FreeIpApi {
6261
format!("https://freeipapi.com/api/json/{}", target)
6362
}
6463

65-
#[inline]
6664
fn add_auth(&self, request: RequestBuilder, key: &Option<String>) -> RequestBuilder {
6765
if let Some(key) = key {
6866
return request.bearer_auth(key);

src/lookup/getjsonip.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ impl ProviderResponse<GetJsonIpResponse> for GetJsonIpResponse {
2929
pub struct GetJsonIp;
3030

3131
impl Provider for GetJsonIp {
32-
#[inline]
3332
fn get_endpoint(&self, _key: &Option<String>, _target: &Option<IpAddr>) -> String {
3433
"https://ipv4.jsonip.com".to_string()
3534
}

src/lookup/ifconfig.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ impl ProviderResponse<IfConfigResponse> for IfConfigResponse {
6060
pub struct IfConfig;
6161

6262
impl Provider for IfConfig {
63-
#[inline]
6463
fn get_endpoint(&self, _key: &Option<String>, target: &Option<IpAddr>) -> String {
6564
let target = match target.map(|t| t.to_string()) {
6665
Some(t) => format!("?ip={}", t),

src/lookup/ip2location.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ impl ProviderResponse<Ip2LocationResponse> for Ip2LocationResponse {
5454
pub struct Ip2Location;
5555

5656
impl Provider for Ip2Location {
57-
#[inline]
5857
fn get_endpoint(&self, key: &Option<String>, target: &Option<IpAddr>) -> String {
5958
let key = match key {
6059
Some(k) => format!("?key={}", k),

src/lookup/ipapico.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ impl ProviderResponse<IpApiCoResponse> for IpApiCoResponse {
5858
pub struct IpApiCo;
5959

6060
impl Provider for IpApiCo {
61-
#[inline]
6261
fn get_endpoint(&self, _key: &Option<String>, target: &Option<IpAddr>) -> String {
6362
let target = match target.map(|t| t.to_string()) {
6463
Some(t) => format!("{}/", t),
@@ -67,7 +66,6 @@ impl Provider for IpApiCo {
6766
format!("https://ipapi.co/{}json", target)
6867
}
6968

70-
#[inline]
7169
fn add_auth(&self, request: RequestBuilder, _key: &Option<String>) -> RequestBuilder {
7270
request.header("User-Agent", "nil")
7371
}

src/lookup/ipapicom.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ impl ProviderResponse<IpApiComResponse> for IpApiComResponse {
6767
pub struct IpApiCom;
6868

6969
impl Provider for IpApiCom {
70-
#[inline]
7170
fn get_endpoint(&self, _key: &Option<String>, target: &Option<IpAddr>) -> String {
7271
let target = match target.map(|t| t.to_string()) {
7372
Some(t) => t,

src/lookup/ipapiio.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ impl ProviderResponse<IpApiIoResponse> for IpApiIoResponse {
6868
pub struct IpApiIo;
6969

7070
impl Provider for IpApiIo {
71-
#[inline]
7271
fn get_endpoint(&self, key: &Option<String>, target: &Option<IpAddr>) -> String {
7372
let key = match key {
7473
Some(k) => format!("?api_key={}", k),

src/lookup/ipbase.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ impl ProviderResponse<IpBaseResponse> for IpBaseResponse {
124124
pub struct IpBase;
125125

126126
impl Provider for IpBase {
127-
#[inline]
128127
fn get_endpoint(&self, _key: &Option<String>, target: &Option<IpAddr>) -> String {
129128
let target = match target.map(|t| t.to_string()) {
130129
Some(t) => format!("?ip={}", t),
@@ -133,7 +132,6 @@ impl Provider for IpBase {
133132
format!("https://api.ipbase.com/v2/info{}", target)
134133
}
135134

136-
#[inline]
137135
fn add_auth(&self, request: RequestBuilder, key: &Option<String>) -> RequestBuilder {
138136
if let Some(key) = key {
139137
return request.header("apikey", key);

src/lookup/ipdata.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ impl ProviderResponse<IpDataResponse> for IpDataResponse {
110110
pub struct IpData;
111111

112112
impl Provider for IpData {
113-
#[inline]
114113
fn get_endpoint(&self, key: &Option<String>, target: &Option<IpAddr>) -> String {
115114
let key = match key {
116115
Some(k) => format!("?api-key={}", k),

0 commit comments

Comments
 (0)