aboutsummaryrefslogtreecommitdiffstats
path: root/src/yaml
diff options
context:
space:
mode:
authorTeddy Wing2022-03-21 02:11:16 +0100
committerTeddy Wing2022-03-21 02:11:50 +0100
commit5e48997ecb4df8ce9507e6229df457d1065b19bc (patch)
tree3d44a0bb9bb73ceadc9580bac12d5e7f612b732f /src/yaml
parent9816ad12c931e18ea7cc0e6cfaf3914a173e173e (diff)
downloadyaqlite-5e48997ecb4df8ce9507e6229df457d1065b19bc.tar.bz2
Add placeholders for code documentation reminders
Diffstat (limited to 'src/yaml')
-rw-r--r--src/yaml/sql.rs3
-rw-r--r--src/yaml/write.rs2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/yaml/sql.rs b/src/yaml/sql.rs
index ef72aae..ac60dc3 100644
--- a/src/yaml/sql.rs
+++ b/src/yaml/sql.rs
@@ -3,9 +3,11 @@ use yaml_rust::yaml;
use std::borrow::Cow;
+/// TODO
#[derive(Debug)]
pub(crate) struct Yaml<'a>(pub Cow<'a, yaml::Yaml>);
+// TODO: Delete
// impl<'a, Y> From<Y> for Yaml<'a>
// where Y: Into<yaml_rust::Yaml>
// {
@@ -17,6 +19,7 @@ pub(crate) struct Yaml<'a>(pub Cow<'a, yaml::Yaml>);
// impl From<
impl<'a> Yaml<'a> {
+ /// TODO
pub fn into_inner(self) -> yaml::Yaml {
self.0.into_owned()
}
diff --git a/src/yaml/write.rs b/src/yaml/write.rs
index a1e52a5..b7970b4 100644
--- a/src/yaml/write.rs
+++ b/src/yaml/write.rs
@@ -1,8 +1,10 @@
+/// TODO
pub struct IoAdapter<'a, T: std::io::Write> {
inner: &'a mut T,
}
impl<'a, T: std::io::Write> IoAdapter<'a, T> {
+ /// TODO
pub fn new(writer: &'a mut T) -> Self {
IoAdapter { inner: writer }
}