diff --git a/src/lib.rs b/src/lib.rs index e88fb99..6f9c7e4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -9,9 +9,9 @@ use std::env; use supabase_wrappers::prelude::*; use tokio::runtime::Runtime; pgrx::pg_module_magic!(); +use pgrx::pg_sys::panic::ErrorReport; use std::time::Duration; use urlencoding::encode; -use pgrx::pg_sys::panic::ErrorReport; // convert response body text to rows fn resp_to_rows(obj: &str, resp: &JsonValue, quals: &[Qual]) -> Vec { @@ -271,10 +271,13 @@ impl ForeignDataWrapper for PrometheusFdw { Ok(()) } - fn validator(options: Vec>, catalog: Option) -> PrometheusFdwResult<()> { + fn validator( + options: Vec>, + catalog: Option, + ) -> PrometheusFdwResult<()> { if let Some(oid) = catalog { if oid == FOREIGN_TABLE_RELATION_ID { - let _ =check_options_contain(&options, "object"); + let _ = check_options_contain(&options, "object"); } } Ok(())