File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ class Vec final {
329
329
void set_len (std::size_t len) noexcept ;
330
330
void drop () noexcept ;
331
331
332
- friend void swap (Vec<T> &lhs, Vec<T> &rhs) noexcept { lhs.swap (rhs); }
332
+ friend void swap (Vec &lhs, Vec &rhs) noexcept { lhs.swap (rhs); }
333
333
334
334
// Size and alignment statically verified by rust_vec.rs.
335
335
std::array<std::uintptr_t , 3 > repr;
@@ -768,7 +768,7 @@ Box<T> Box<T>::in_place(Fields &&... fields) {
768
768
}
769
769
770
770
template <typename T>
771
- void Box<T>::swap(Box<T> &rhs) noexcept {
771
+ void Box<T>::swap(Box &rhs) noexcept {
772
772
using std::swap;
773
773
swap (this ->ptr , rhs.ptr );
774
774
}
@@ -955,7 +955,7 @@ typename Vec<T>::const_iterator Vec<T>::cend() const noexcept {
955
955
}
956
956
957
957
template <typename T>
958
- void Vec<T>::swap(Vec<T> &rhs) noexcept {
958
+ void Vec<T>::swap(Vec &rhs) noexcept {
959
959
using std::swap;
960
960
swap (this ->repr , rhs.repr );
961
961
}
You can’t perform that action at this time.
0 commit comments