Skip to content

Commit a206527

Browse files
committed
chore: remove commented out impl Default
1 parent a860979 commit a206527

File tree

4 files changed

+9
-30
lines changed

4 files changed

+9
-30
lines changed

ibc-clients/ics07-tendermint/types/src/trust_threshold.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,6 @@ impl TryFrom<Fraction> for TrustThreshold {
134134
}
135135
}
136136

137-
// impl Default for TrustThreshold {
138-
// fn default() -> Self {
139-
// Self::ONE_THIRD
140-
// }
141-
// }
142-
143137
impl Display for TrustThreshold {
144138
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), FmtError> {
145139
write!(f, "{}/{}", self.numerator, self.denominator)

ibc-core/ics03-connection/types/src/version.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,6 @@ impl From<Version> for RawVersion {
9696
}
9797
}
9898

99-
// impl Default for Version {
100-
// fn default() -> Self {
101-
// Version {
102-
// identifier: "1".to_string(),
103-
// features: vec!["ORDER_ORDERED".to_string(), "ORDER_UNORDERED".to_string()],
104-
// }
105-
// }
106-
// }
107-
10899
impl Display for Version {
109100
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
110101
write!(

ibc-core/ics24-host/types/src/identifiers/connection_id.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ impl FromStr for ConnectionId {
7878
}
7979
}
8080

81-
// impl Default for ConnectionId {
82-
// fn default() -> Self {
83-
// Self::new(0)
84-
// }
85-
// }
86-
8781
/// Equality check against string literal (satisfies &ConnectionId == &str).
8882
/// ```
8983
/// use core::str::FromStr;

ibc-core/ics24-host/types/src/path.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ fn parse_upgrades(components: &[&str]) -> Option<Path> {
11691169
#[cfg(test)]
11701170
mod tests {
11711171
use super::*;
1172-
const DUMMY_CLIENT_ID: &str = "07-tendermint-0";
1172+
const DEFAULT_CLIENT_ID: &str = "07-tendermint-0";
11731173
#[rstest::rstest]
11741174
#[case(NEXT_CLIENT_SEQUENCE, Path::NextClientSequence(NextClientSequencePath))]
11751175
#[case(
@@ -1182,27 +1182,27 @@ mod tests {
11821182
)]
11831183
#[case(
11841184
"clients/07-tendermint-0/clientState",
1185-
Path::ClientState(ClientStatePath(DUMMY_CLIENT_ID.into())))]
1185+
Path::ClientState(ClientStatePath(DEFAULT_CLIENT_ID.into())))]
11861186
#[case(
11871187
"clients/07-tendermint-0/consensusStates/15-31",
11881188
Path::ClientConsensusState(ClientConsensusStatePath {
1189-
client_id: DUMMY_CLIENT_ID.into(),
1189+
client_id: DEFAULT_CLIENT_ID.into(),
11901190
revision_number: 15,
11911191
revision_height: 31,
11921192
})
11931193
)]
11941194
#[case(
11951195
"clients/07-tendermint-0/consensusStates/15-31/processedTime",
11961196
Path::ClientUpdateTime(ClientUpdateTimePath {
1197-
client_id: DUMMY_CLIENT_ID.into(),
1197+
client_id: DEFAULT_CLIENT_ID.into(),
11981198
revision_number: 15,
11991199
revision_height: 31,
12001200
})
12011201
)]
12021202
#[case(
12031203
"clients/07-tendermint-0/consensusStates/15-31/processedHeight",
12041204
Path::ClientUpdateHeight(ClientUpdateHeightPath {
1205-
client_id: DUMMY_CLIENT_ID.into(),
1205+
client_id: DEFAULT_CLIENT_ID.into(),
12061206
revision_number: 15,
12071207
revision_height: 31,
12081208
})
@@ -1288,7 +1288,7 @@ mod tests {
12881288
assert_eq!(
12891289
parse_client_paths(&components),
12901290
Some(Path::ClientState(ClientStatePath(ClientId::from(
1291-
DUMMY_CLIENT_ID
1291+
DEFAULT_CLIENT_ID
12921292
))))
12931293
);
12941294

@@ -1298,7 +1298,7 @@ mod tests {
12981298
assert_eq!(
12991299
parse_client_paths(&components),
13001300
Some(Path::ClientConsensusState(ClientConsensusStatePath {
1301-
client_id: DUMMY_CLIENT_ID.into(),
1301+
client_id: DEFAULT_CLIENT_ID.into(),
13021302
revision_number: 15,
13031303
revision_height: 31,
13041304
}))
@@ -1313,7 +1313,7 @@ mod tests {
13131313
assert_eq!(
13141314
parse_client_paths(&components),
13151315
Some(Path::ClientUpdateTime(ClientUpdateTimePath {
1316-
client_id: DUMMY_CLIENT_ID.into(),
1316+
client_id: DEFAULT_CLIENT_ID.into(),
13171317
revision_number: 15,
13181318
revision_height: 31,
13191319
}))
@@ -1325,7 +1325,7 @@ mod tests {
13251325
assert_eq!(
13261326
parse_client_paths(&components),
13271327
Some(Path::ClientUpdateHeight(ClientUpdateHeightPath {
1328-
client_id: DUMMY_CLIENT_ID.into(),
1328+
client_id: DEFAULT_CLIENT_ID.into(),
13291329
revision_number: 15,
13301330
revision_height: 31,
13311331
}))

0 commit comments

Comments
 (0)