Skip to content

Commit 4978415

Browse files
authored
We can use Self, as long as the surrounding extern "..." (KDAB#846)
block only has a single type declaration in it!
1 parent bf7c760 commit 4978415

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

crates/cxx-qt-lib/src/core/qbytearray.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ mod ffi {
1313
type QByteArray = super::QByteArray;
1414

1515
/// Clears the contents of the byte array and makes it null.
16-
fn clear(self: &mut QByteArray);
16+
fn clear(self: &mut Self);
1717
/// Returns true if the byte array has size 0; otherwise returns false.
1818
#[rust_name = "is_empty"]
19-
fn isEmpty(self: &QByteArray) -> bool;
19+
fn isEmpty(self: &Self) -> bool;
2020
/// Returns true if this byte array is lowercase, that is, if it's identical to its toLower() folding.
2121
#[rust_name = "is_lower"]
22-
fn isLower(self: &QByteArray) -> bool;
22+
fn isLower(self: &Self) -> bool;
2323
/// Returns true if this byte array is null; otherwise returns false.
2424
#[rust_name = "is_null"]
25-
fn isNull(self: &QByteArray) -> bool;
25+
fn isNull(self: &Self) -> bool;
2626
/// Returns true if this byte array is uppercase, that is, if it's identical to its toUpper() folding.
2727
#[rust_name = "is_upper"]
28-
fn isUpper(self: &QByteArray) -> bool;
28+
fn isUpper(self: &Self) -> bool;
2929
/// Releases any memory not required to store the array's data.
30-
fn squeeze(self: &mut QByteArray);
30+
fn squeeze(self: &mut Self);
3131
}
3232

3333
#[namespace = "rust::cxxqtlib1"]

0 commit comments

Comments
 (0)