|
14 | 14 | Core encoding and decoding interfaces.
|
15 | 15 | */
|
16 | 16 |
|
17 |
| -use std::path; |
| 17 | +use std::old_path; |
18 | 18 | use std::rc::Rc;
|
19 | 19 | use std::cell::{Cell, RefCell};
|
20 | 20 | use std::sync::Arc;
|
@@ -538,29 +538,29 @@ macro_rules! tuple {
|
538 | 538 |
|
539 | 539 | tuple! { T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, }
|
540 | 540 |
|
541 |
| -impl Encodable for path::posix::Path { |
| 541 | +impl Encodable for old_path::posix::Path { |
542 | 542 | fn encode<S: Encoder>(&self, e: &mut S) -> Result<(), S::Error> {
|
543 | 543 | self.as_vec().encode(e)
|
544 | 544 | }
|
545 | 545 | }
|
546 | 546 |
|
547 |
| -impl Decodable for path::posix::Path { |
548 |
| - fn decode<D: Decoder>(d: &mut D) -> Result<path::posix::Path, D::Error> { |
| 547 | +impl Decodable for old_path::posix::Path { |
| 548 | + fn decode<D: Decoder>(d: &mut D) -> Result<old_path::posix::Path, D::Error> { |
549 | 549 | let bytes: Vec<u8> = try!(Decodable::decode(d));
|
550 |
| - Ok(path::posix::Path::new(bytes)) |
| 550 | + Ok(old_path::posix::Path::new(bytes)) |
551 | 551 | }
|
552 | 552 | }
|
553 | 553 |
|
554 |
| -impl Encodable for path::windows::Path { |
| 554 | +impl Encodable for old_path::windows::Path { |
555 | 555 | fn encode<S: Encoder>(&self, e: &mut S) -> Result<(), S::Error> {
|
556 | 556 | self.as_vec().encode(e)
|
557 | 557 | }
|
558 | 558 | }
|
559 | 559 |
|
560 |
| -impl Decodable for path::windows::Path { |
561 |
| - fn decode<D: Decoder>(d: &mut D) -> Result<path::windows::Path, D::Error> { |
| 560 | +impl Decodable for old_path::windows::Path { |
| 561 | + fn decode<D: Decoder>(d: &mut D) -> Result<old_path::windows::Path, D::Error> { |
562 | 562 | let bytes: Vec<u8> = try!(Decodable::decode(d));
|
563 |
| - Ok(path::windows::Path::new(bytes)) |
| 563 | + Ok(old_path::windows::Path::new(bytes)) |
564 | 564 | }
|
565 | 565 | }
|
566 | 566 |
|
|
0 commit comments