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/rustpkg.rs | |
| parent | d6d9b926836b1f1c2b8b3fe4ab35dc63bec7ffcd (diff) | |
| download | rust-c01a97b7a981fb5ae008be7e06df4bf6a85eba4f.tar.gz rust-c01a97b7a981fb5ae008be7e06df4bf6a85eba4f.zip | |
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/rustpkg.rs')
| -rw-r--r-- | src/librustpkg/rustpkg.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustpkg/rustpkg.rs b/src/librustpkg/rustpkg.rs index 5ef8948c377..e6b93e06073 100644 --- a/src/librustpkg/rustpkg.rs +++ b/src/librustpkg/rustpkg.rs @@ -337,7 +337,7 @@ impl CtxMethods for BuildContext { "list" => { io::println("Installed packages:"); do installed_packages::list_installed_packages |pkg_id| { - do pkg_id.path.with_display_str |s| { + do pkg_id.path.display().with_str |s| { println(s); } true @@ -564,7 +564,7 @@ impl CtxMethods for BuildContext { &pkg_src.destination_workspace, &id).map(|s| Path::new(*s)); debug2!("install: id = {}, about to call discover_outputs, {:?}", - id.to_str(), result.map(|p| p.to_display_str())); + id.to_str(), result.map(|p| p.display().to_str())); installed_files = installed_files + result; note(format!("Installed package {} to {}", id.to_str(), |
