Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ebc29bc

Browse filesBrowse files
committed
refactor: add trailing comma to multiline derives
Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
1 parent c7d8e78 commit ebc29bc
Copy full SHA for ebc29bc

File tree

Expand file treeCollapse file tree

4 files changed

+137
-137
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+137
-137
lines changed

‎bindgen.sh

Copy file name to clipboardExpand all lines: bindgen.sh
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ gen() {
1111
--with-derive-hash \
1212
--with-derive-partialeq \
1313
--with-derive-eq \
14-
--with-attribute-custom-enum '.*=#[cfg_attr(feature = "num_enum", derive(num_enum::IntoPrimitive,num_enum::TryFromPrimitive,num_enum::UnsafeFromPrimitive))]' \
15-
--with-attribute-custom-struct '.*=#[cfg_attr(feature = "zerocopy", derive(zerocopy_derive::FromZeroes,zerocopy_derive::FromBytes,zerocopy_derive::AsBytes))]' \
14+
--with-attribute-custom-enum '.*=#[cfg_attr(feature = "num_enum", derive(num_enum::IntoPrimitive,num_enum::TryFromPrimitive,num_enum::UnsafeFromPrimitive,))]' \
15+
--with-attribute-custom-struct '.*=#[cfg_attr(feature = "zerocopy", derive(zerocopy_derive::FromZeroes,zerocopy_derive::FromBytes,zerocopy_derive::AsBytes,))]' \
1616
"$@"
1717
}
1818

‎patches/0001-fix-add-zerocopy-support-for-__IncompleteArrayField.patch

Copy file name to clipboardExpand all lines: patches/0001-fix-add-zerocopy-support-for-__IncompleteArrayField.patch
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ diff --git a/src/linux.rs b/src/linux.rs
1212
+ derive(
1313
+ zerocopy_derive::FromZeroes,
1414
+ zerocopy_derive::FromBytes,
15-
+ zerocopy_derive::AsBytes
15+
+ zerocopy_derive::AsBytes,
1616
+ )
1717
+)]
1818
pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
@@ -32,7 +32,7 @@ diff --git a/src/macos.rs b/src/macos.rs
3232
+ derive(
3333
+ zerocopy_derive::FromZeroes,
3434
+ zerocopy_derive::FromBytes,
35-
+ zerocopy_derive::AsBytes
35+
+ zerocopy_derive::AsBytes,
3636
+ )
3737
+)]
3838
pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.