Open NobodyXu opened 5 months ago
I think if we're going to split let's split all the atomic-file-install, fs-lock, and normalize-path into their own individual repos. They're not really related to each other.
Yeah that makes sense.
while i'm here, leon Template should support ToOwned to convert all the borrowed cows into owned ones
Yeah, I can add that function when koving them to a separate repo
@passcod std::borrow::ToOwned
is implemented for T: Clone
, though <Cow as Clone>::clone
returns a copies of the Cow::Borrowed
.
I could manually implement <Template as Clone>::clone
to convert Cow::Borrowed
to Cow::Owned
, but I feel that it is a breaking behavior.
Maybe we could add an associated fn to_owned
to leon::Template
?
P.S. I've already moved the code into a new repository https://github.com/cargo-bins/leon
I think we might as well issue a breaking change implementing ToOwned 'correctly'
created cargo-bins/leon#4 to further discuss this
Move:
Rationale: