Skip to content

Commit

Permalink
rid-macro: fixing display tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thlorenz committed May 10, 2021
1 parent cb91ef1 commit 73a994b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rid-macro-impl/src/display/display_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ mod enums_display_impl {

let expected = quote! {
mod __rid_mod_rid_single_display {
use super::*;
#[no_mangle]
#[allow(non_snake_case)]
pub extern "C" fn rid_single_display(n: i32) -> *const ::std::os::raw::c_char {
Expand Down Expand Up @@ -52,6 +53,7 @@ mod enums_display_impl {

let expected = quote! {
mod __rid_mod_rid_single_display {
use super::*;
#[no_mangle]
#[allow(non_snake_case)]
pub extern "C" fn rid_single_display(n: i32) -> *const ::std::os::raw::c_char {
Expand Down Expand Up @@ -83,6 +85,7 @@ mod structs_display_impl {

let expected = quote! {
mod __rid_mod_rid_single_display {
use super::*;
#[no_mangle]
#[allow(non_snake_case)]
pub extern "C" fn rid_single_display(ptr: *mut Single) -> *const ::std::os::raw::c_char {
Expand Down

0 comments on commit 73a994b

Please sign in to comment.