summaryrefslogtreecommitdiff
path: root/rust/src/string.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-12-11 14:45:23 -0500
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-12-15 19:29:56 -0500
commitca0e32efb1e5b9eba157e9fd2eef178d9367c578 (patch)
tree12f9eab134807a4b2821e04ada4795e6611ea45f /rust/src/string.rs
parenta83f2082799695b85b732987adb21112d042b152 (diff)
[Rust] Restructure type APIs into `types` module
This helps with documentation, giving a single module for those working with types to find related APIs Also split out enumeration and structure APIs into their own file, since they have their own backing data separate from `Type`.
Diffstat (limited to 'rust/src/string.rs')
-rw-r--r--rust/src/string.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/rust/src/string.rs b/rust/src/string.rs
index c7d541ce..8505cbf5 100644
--- a/rust/src/string.rs
+++ b/rust/src/string.rs
@@ -24,7 +24,6 @@ use std::ops::Deref;
use std::path::{Path, PathBuf};
use crate::rc::*;
-use crate::type_archive::TypeArchiveSnapshotId;
use crate::types::QualifiedName;
// TODO: Remove or refactor this.
@@ -288,14 +287,6 @@ impl IntoCStr for &Path {
}
}
-impl IntoCStr for TypeArchiveSnapshotId {
- type Result = CString;
-
- fn to_cstr(self) -> Self::Result {
- self.to_string().to_cstr()
- }
-}
-
pub trait IntoJson {
type Output: IntoCStr;