mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 07:14:50 +01:00
feat: BufferNode also From<&str>
This commit is contained in:
parent
47127bbb41
commit
e0d4360d09
1 changed files with 6 additions and 0 deletions
|
@ -199,6 +199,12 @@ pub mod proto {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<&str> for BufferNode {
|
||||
fn from(value: &str) -> Self {
|
||||
BufferNode { path: value.to_string() }
|
||||
}
|
||||
}
|
||||
|
||||
impl From<BufferNode> for String {
|
||||
fn from(value: BufferNode) -> Self {
|
||||
value.path
|
||||
|
|
Loading…
Reference in a new issue