src/helpers.rs in faster_path-0.3.1 vs src/helpers.rs in faster_path-0.3.2
- old
+ new
@@ -1,7 +1,13 @@
use ruru::{RString, Object, Class, AnyObject};
use debug::RubyDebugInfo;
+pub trait TryFrom<T>: Sized {
+ type Error;
+
+ fn try_from(value: T) -> Result<Self, Self::Error>;
+}
+
#[inline]
pub fn is_same_path(a: &str, b: &str) -> bool {
if cfg!(windows) {
a.to_uppercase() == b.to_uppercase()
} else {