##// END OF EJS Templates
rust: leverage improved match ergonomics...
Raphaël Gomès -
r46190:d5407b2e default
parent child Browse files
Show More
@@ -730,7 +730,7 b' where'
730 730 .symlink_metadata();
731 731
732 732 match meta {
733 Ok(ref m)
733 Ok(m)
734 734 if !(m.file_type().is_file()
735 735 || m.file_type().is_symlink()) =>
736 736 {
@@ -749,7 +749,7 b' where'
749 749 );
750 750 Ok((Cow::Owned(filename), dispatch))
751 751 }
752 Err(ref e)
752 Err(e)
753 753 if e.kind() == ErrorKind::NotFound
754 754 || e.raw_os_error() == Some(20) =>
755 755 {
@@ -783,7 +783,7 b' where'
783 783 let meta =
784 784 self.root_dir.join(filename_as_path).symlink_metadata();
785 785 match meta {
786 Ok(ref m)
786 Ok(m)
787 787 if !(m.file_type().is_file()
788 788 || m.file_type().is_symlink()) =>
789 789 {
@@ -802,7 +802,7 b' where'
802 802 self.options,
803 803 ),
804 804 )),
805 Err(ref e)
805 Err(e)
806 806 if e.kind() == ErrorKind::NotFound
807 807 || e.raw_os_error() == Some(20) =>
808 808 {
General Comments 0
You need to be logged in to leave comments. Login now