Skip to content

Commit 3c8faca

Browse files
committed
clippy
1 parent 7791e98 commit 3c8faca

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

crates/constants/src/types/environment.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// Signet Environment constants.
2-
#[derive(Debug, Clone, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
2+
#[derive(Debug, Copy, Clone, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
33
pub struct SignetEnvironmentConstants {
44
/// Name of the host chain.
55
host_name: &'static str,
@@ -31,17 +31,17 @@ impl SignetEnvironmentConstants {
3131
}
3232

3333
/// Get the host name.
34-
pub fn host_name(&self) -> &str {
35-
&self.host_name
34+
pub const fn host_name(&self) -> &str {
35+
self.host_name
3636
}
3737

3838
/// Get the rollup name.
39-
pub fn rollup_name(&self) -> &str {
40-
&self.rollup_name
39+
pub const fn rollup_name(&self) -> &str {
40+
self.rollup_name
4141
}
4242

4343
/// Get the transaction cache URL.
44-
pub fn transaction_cache(&self) -> &str {
45-
&self.transaction_cache
44+
pub const fn transaction_cache(&self) -> &str {
45+
self.transaction_cache
4646
}
4747
}

crates/constants/src/types/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,8 @@ impl SignetSystemConstants {
202202
}
203203
}
204204

205-
206205
/// All constants pertaining to the Signet system.
207-
#[derive(Debug, Clone, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
206+
#[derive(Debug, Clone, PartialEq, Eq)]
208207
pub struct SignetConstants {
209208
/// System constants for a Signet chain.
210209
system: SignetSystemConstants,

0 commit comments

Comments
 (0)