aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2022-03-21 02:12:23 +0100
committerTeddy Wing2022-03-21 02:13:57 +0100
commit5fc732507522af3565655b01f1473baa0e1a1da2 (patch)
treeb01336b2cb8960a08027affab3d5013eb0e5c529
parent5e48997ecb4df8ce9507e6229df457d1065b19bc (diff)
downloadyaqlite-5fc732507522af3565655b01f1473baa0e1a1da2.tar.bz2
sql: Remove `From` impl for `Yaml` idea comment
This was obviated by using `Cow::Borrowed` and `Cow::Owned` directly when creating a `Yaml`.
-rw-r--r--src/yaml/sql.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/yaml/sql.rs b/src/yaml/sql.rs
index ac60dc3..a9644eb 100644
--- a/src/yaml/sql.rs
+++ b/src/yaml/sql.rs
@@ -7,17 +7,6 @@ use std::borrow::Cow;
#[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>
-// {
-// fn from(yaml: Y) -> Self {
-// Self(Cow::from(yaml))
-// }
-// }
-
-// impl From<
-
impl<'a> Yaml<'a> {
/// TODO
pub fn into_inner(self) -> yaml::Yaml {