Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kysshsy committed Jan 13, 2025
1 parent 55729ea commit c6700ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/bin/pgrx_embed.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#![allow(unexpected_cfgs)]
::pgrx::pgrx_embed!();
2 changes: 1 addition & 1 deletion src/fdw/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ unsafe fn auto_create_schema_impl(fcinfo: pg_sys::FunctionCallInfo) -> Result<()
// Alter Postgres table to match DuckDB schema
let preserve_casing = table_options
.get("preserve_casing")
.map_or(false, |s| s.eq_ignore_ascii_case("true"));
.is_some_and(|s| s.eq_ignore_ascii_case("true"));
let alter_table_statement =
construct_alter_table_statement(schema_name, table_name, schema_rows, preserve_casing);
Spi::run(alter_table_statement.as_str())?;
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#![allow(unexpected_cfgs)]

mod api;
#[cfg(debug_assertions)]
Expand Down

0 comments on commit c6700ab

Please sign in to comment.