-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from pluots/misc-updates
Misc updates from the GUI branch
- Loading branch information
Showing
19 changed files
with
864 additions
and
327 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
//! Things only used for testing | ||
use std::sync::atomic::Ordering; | ||
|
||
use crate::{common::buf2lstring, logging::UNSUPPORTED_KEYS}; | ||
|
||
pub fn num_unsupported_keys() -> u32 { | ||
UNSUPPORTED_KEYS.load(Ordering::Relaxed) | ||
} | ||
|
||
/// Called from our proc macro to log a key | ||
pub fn macro_unsupported_key(name: &str, key: &[u8], val: &[u8]) { | ||
UNSUPPORTED_KEYS.fetch_add(1, Ordering::Relaxed); | ||
eprintln!( | ||
"unsupported key for `{name}`: {}={} (via `FromRecord` derive)", | ||
buf2lstring(key), | ||
buf2lstring(val) | ||
); | ||
} | ||
//! Things only used for testing | ||
use std::sync::atomic::Ordering; | ||
|
||
use crate::{common::buf2lstring, logging::UNSUPPORTED_KEYS}; | ||
|
||
pub fn num_unsupported_keys() -> u32 { | ||
UNSUPPORTED_KEYS.load(Ordering::Relaxed) | ||
} |
Oops, something went wrong.