aboutsummaryrefslogtreecommitdiffstats
path: root/src/yaml
diff options
context:
space:
mode:
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 }
}