Skip to content

Commit

Permalink
Message style improvements (#26) (#27)
Browse files Browse the repository at this point in the history
Improvements to existing message implementation to better fit agreed-on
patterns and consistently follow design requirements. Not yet fully
finished, but good enough to merge.
  • Loading branch information
alilleybrinker committed Sep 23, 2020
1 parent 1f22a6d commit 0af4921
Show file tree
Hide file tree
Showing 7 changed files with 350 additions and 472 deletions.
2 changes: 1 addition & 1 deletion rust/pact_matching_ffi/src/log/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub unsafe extern "C" fn logger_attach_sink(
level_filter: LevelFilter,
) -> c_int {
// Get the specifier from the raw C string.
let sink_specifier = unsafe { CStr::from_ptr(sink_specifier) };
let sink_specifier = CStr::from_ptr(sink_specifier);
let sink_specifier = match sink_specifier.to_str() {
Ok(sink_specifier) => sink_specifier,
Err(_) => return Status::SpecifierNotUtf8 as c_int,
Expand Down
Loading

0 comments on commit 0af4921

Please sign in to comment.