mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 17:02:56 +00:00
clippy fixes
This commit is contained in:
@@ -713,9 +713,8 @@ fn parse_toml_string(name: &str, item: &Item) -> Result<String> {
|
||||
}
|
||||
|
||||
fn parse_toml_bool(name: &str, item: &Item) -> Result<bool> {
|
||||
Ok(item
|
||||
.as_bool()
|
||||
.with_context(|| format!("configure option {name} is not a boolean"))?)
|
||||
item.as_bool()
|
||||
.with_context(|| format!("configure option {name} is not a boolean"))
|
||||
}
|
||||
|
||||
fn parse_toml_u64(name: &str, item: &Item) -> Result<u64> {
|
||||
|
||||
@@ -160,7 +160,7 @@ pub fn is_uninit_mark(path: &Path) -> bool {
|
||||
#[macro_export]
|
||||
macro_rules! fail_point {
|
||||
($($name:expr),*) => {{
|
||||
if cfg!(test) || *crate::TESTING_MODE.get().expect("testing_mode not initialized") {
|
||||
if cfg!(test) || *$crate::TESTING_MODE.get().expect("testing_mode not initialized") {
|
||||
fail::fail_point!($($name), *)
|
||||
}
|
||||
}};
|
||||
|
||||
Reference in New Issue
Block a user