Skip to content

Commit 4607271

Browse files
committed
[integritee-service] fix clippy
1 parent fcfe368 commit 4607271

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

service/src/config.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,18 +243,15 @@ impl RunConfig {
243243
}
244244

245245
pub fn shard(&self) -> Option<&str> {
246-
self.shard.as_ref().map(|s| s.as_str())
246+
self.shard.as_deref()
247247
}
248248

249249
pub fn teeracle_update_interval(&self) -> Duration {
250250
self.teeracle_update_interval.unwrap_or(DEFAULT_MARKET_DATA_UPDATE_INTERVAL)
251251
}
252252

253253
pub fn marblerun_base_url(&self) -> &str {
254-
self.marblerun_base_url
255-
.as_ref()
256-
.map(|s| s.as_str())
257-
.unwrap_or("http://localhost:9944")
254+
self.marblerun_base_url.as_deref().unwrap_or("http://localhost:9944")
258255
}
259256
}
260257

0 commit comments

Comments
 (0)