From e8f36d5ea0a56250109d93656130b442d2e59e4c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 14 Feb 2013 11:47:00 -0800 Subject: librustc: Replace `impl Type : Trait` with `impl Trait for Type`. rs=implflipping --- src/libstd/priority_queue.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/priority_queue.rs') diff --git a/src/libstd/priority_queue.rs b/src/libstd/priority_queue.rs index a64aa5e9687..a25a4196b4c 100644 --- a/src/libstd/priority_queue.rs +++ b/src/libstd/priority_queue.rs @@ -27,7 +27,7 @@ pub struct PriorityQueue { priv data: ~[T], } -impl PriorityQueue: BaseIter { +impl BaseIter for PriorityQueue { /// Visit all values in the underlying vector. /// /// The values are **not** visited in order. @@ -35,7 +35,7 @@ impl PriorityQueue: BaseIter { pure fn size_hint(&self) -> Option { self.data.size_hint() } } -impl PriorityQueue: Container { +impl Container for PriorityQueue { /// Returns the length of the queue pure fn len(&self) -> uint { self.data.len() } @@ -43,7 +43,7 @@ impl PriorityQueue: Container { pure fn is_empty(&self) -> bool { self.data.is_empty() } } -impl PriorityQueue: Mutable { +impl Mutable for PriorityQueue { /// Drop all items from the queue fn clear(&mut self) { self.data.truncate(0) } } -- cgit 1.4.1-3-g733a5