File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 63
63
- name : Cargo build
64
64
run : cargo build --workspace --features bundled
65
65
66
+ - name : Cargo clippy
67
+ run : cargo clippy --workspace --features bundled -- -D warnings
68
+
66
69
- name : Cargo test
67
70
run : cargo test --workspace --features bundled
68
71
env :
Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ impl<'a> Blob<'a> {
87
87
}
88
88
89
89
/// Construct a `Blob` from a raw pointer. Takes ownership of the blob.
90
+ ///
91
+ /// # Safety
92
+ ///
93
+ /// The pointer must be valid and must not be used after this function is called.
90
94
pub unsafe fn from_raw ( raw : * mut sys:: hb_blob_t ) -> Self {
91
95
Blob {
92
96
raw,
Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ impl Buffer {
83
83
}
84
84
85
85
/// Construct a `Buffer` from a raw pointer. Takes ownership of the buffer.
86
+ ///
87
+ /// # Safety
88
+ ///
89
+ /// The pointer must be valid and must not be used after this function is called.
86
90
pub unsafe fn from_raw ( raw : * mut sys:: hb_buffer_t ) -> Self {
87
91
Buffer { raw }
88
92
}
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ impl Language {
39
39
. unwrap ( )
40
40
}
41
41
42
+ /// Construct a `Language` from a raw pointer.
43
+ ///
44
+ /// # Safety
45
+ ///
46
+ /// The pointer must be a valid pointer.
42
47
pub unsafe fn from_raw ( raw : sys:: hb_language_t ) -> Self {
43
48
Language { raw }
44
49
}
You can’t perform that action at this time.
0 commit comments