diff options
| author | Kevin Ballard <kevin@sb.org> | 2013-10-06 18:51:49 -0700 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2013-10-15 22:19:53 -0700 |
| commit | c01a97b7a981fb5ae008be7e06df4bf6a85eba4f (patch) | |
| tree | c7cba306ad49ecb103ac9674dfeb71025746a7c2 /src/librustpkg/package_source.rs | |
| parent | d6d9b926836b1f1c2b8b3fe4ab35dc63bec7ffcd (diff) | |
path2: Remove .with_display_str and friends
Rewrite these methods as methods on Display and FilenameDisplay. This
turns
do path.with_display_str |s| { ... }
into
do path.display().with_str |s| { ... }
Diffstat (limited to 'src/librustpkg/package_source.rs')
| -rw-r--r-- | src/librustpkg/package_source.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustpkg/package_source.rs b/src/librustpkg/package_source.rs index 4e0db8cac4f..5e242c5376a 100644 --- a/src/librustpkg/package_source.rs +++ b/src/librustpkg/package_source.rs @@ -114,7 +114,7 @@ impl PkgSrc { } - debug2!("Checking dirs: {:?}", to_try.map(|p| p.to_display_str()).connect(":")); + debug2!("Checking dirs: {:?}", to_try.map(|p| p.display().to_str()).connect(":")); let path = to_try.iter().find(|&d| os::path_exists(d)); |
