Skip to content

Commit

Permalink
implement valuable for Path
Browse files Browse the repository at this point in the history
implement valuable for Path instead of &Path, in order to support
types like Box<Path>

Signed-off-by: Eliad Peller <[email protected]>
  • Loading branch information
eliad-wiz committed Mar 29, 2023
1 parent 1021649 commit 2cc137e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion valuable/src/valuable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl Valuable for alloc::string::String {
}

#[cfg(feature = "std")]
impl Valuable for &std::path::Path {
impl Valuable for std::path::Path {
fn as_value(&self) -> Value<'_> {
Value::Path(self)
}
Expand Down

0 comments on commit 2cc137e

Please sign in to comment.