mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
feat: use Self instead of struct name whereas applicable
This commit is contained in:
parent
f53635993e
commit
1877a16457
2 changed files with 4 additions and 4 deletions
|
|
@ -224,7 +224,7 @@ pub struct EcoRequestSettings {
|
|||
|
||||
impl From<ExtraRequestSettings> for EcoRequestSettings {
|
||||
fn from(value: ExtraRequestSettings) -> Self {
|
||||
EcoRequestSettings {
|
||||
Self {
|
||||
hostname: value.hostname,
|
||||
}
|
||||
}
|
||||
|
|
@ -232,7 +232,7 @@ impl From<ExtraRequestSettings> for EcoRequestSettings {
|
|||
|
||||
impl From<EcoRequestSettings> for HttpSettings<String> {
|
||||
fn from(value: EcoRequestSettings) -> Self {
|
||||
HttpSettings {
|
||||
Self {
|
||||
protocol: HttpProtocol::Http,
|
||||
hostname: value.hostname,
|
||||
headers: Vec::with_capacity(0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue