Skip to content

Commit

Permalink
Avoid removing pub from members named type
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald authored May 25, 2022
1 parent 03bd339 commit 80a9c08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion make_sys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ bindgen "$BASEDIR/TracyC.h" \
--disable-header-comment \
-- \
${DEFINES[@]}
sed -i 's/pub type/type/g' 'tracy-client-sys/src/generated.rs'
# The space after type avoids hitting members called "type".
sed -i 's/pub type /type/g' 'tracy-client-sys/src/generated.rs'

for REQUIRED_FILE in ${REQUIRED[@]}
do
Expand Down

0 comments on commit 80a9c08

Please sign in to comment.