faster_path 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/faster_path/version.rb +1 -1
- data/src/lib.rs +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18f4ed53458f5dc7d5c2b0d0433edf7444594bdb
|
4
|
+
data.tar.gz: 1add8d70b9d3e4c147f405b831ff224ce0520c98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb708638714c8023d0ce1273607fdc7ba86f9a9b95652a05611a56c21165b8b9c2b90fdc8634a116e290287a5969a42a3ca85f93223a180844961d3b6f429cfb
|
7
|
+
data.tar.gz: 67dc584c6122448af7bfad7ae9a1c9329b6c79f6ff08c9e7a95f1bfe486ac80fc16542528a502555d6a62fb085c8bf4c1f358d59f65c9f63b9ab162d2fbd971d
|
data/lib/faster_path/version.rb
CHANGED
data/src/lib.rs
CHANGED
@@ -20,9 +20,9 @@ pub extern fn is_absolute(string: *const c_char) -> bool {
|
|
20
20
|
CStr::from_ptr(string)
|
21
21
|
};
|
22
22
|
|
23
|
-
let r_str = str::from_utf8(c_str.to_bytes()).
|
23
|
+
let r_str = str::from_utf8(c_str.to_bytes()).unwrap_or("");
|
24
24
|
|
25
|
-
r_str.chars().next().unwrap() == MAIN_SEPARATOR
|
25
|
+
r_str.chars().next().unwrap_or("muffins".chars().next().unwrap()) == MAIN_SEPARATOR
|
26
26
|
}
|
27
27
|
|
28
28
|
#[no_mangle]
|