Skip to content

Commit 783bb10

Browse files
committed
fix: only impl From in test
1 parent 4579400 commit 783bb10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/pgt_workspace/src/workspace/server/statement_identifier.rs

+2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ pub struct RootId {
66
inner: usize,
77
}
88

9+
#[cfg(test)]
910
impl From<RootId> for usize {
1011
fn from(val: RootId) -> Self {
1112
val.inner
1213
}
1314
}
1415

16+
#[cfg(test)]
1517
impl From<usize> for RootId {
1618
fn from(inner: usize) -> Self {
1719
RootId { inner }

0 commit comments

Comments
 (0)