mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-01 17:00:21 +08:00
fix: satisfy rust 1.95 clippy
This commit is contained in:
@@ -971,7 +971,7 @@ fn sql_string_literal(value: &str) -> String {
|
|||||||
|
|
||||||
fn hex_decode(value: &str, column_name: &str) -> Result<Vec<u8>, DataLayerError> {
|
fn hex_decode(value: &str, column_name: &str) -> Result<Vec<u8>, DataLayerError> {
|
||||||
let value = value.trim();
|
let value = value.trim();
|
||||||
if value.len() % 2 != 0 {
|
if !value.len().is_multiple_of(2) {
|
||||||
return Err(DataLayerError::InvalidInput(format!(
|
return Err(DataLayerError::InvalidInput(format!(
|
||||||
"sqlite copy column '{column_name}' has odd-length hex data"
|
"sqlite copy column '{column_name}' has odd-length hex data"
|
||||||
)));
|
)));
|
||||||
|
|||||||
@@ -2058,8 +2058,8 @@ mod tests {
|
|||||||
use super::SqliteProviderCatalogReadRepository;
|
use super::SqliteProviderCatalogReadRepository;
|
||||||
use crate::lifecycle::migrate::run_sqlite_migrations;
|
use crate::lifecycle::migrate::run_sqlite_migrations;
|
||||||
use crate::repository::provider_catalog::{
|
use crate::repository::provider_catalog::{
|
||||||
ProviderCatalogKeyListOrder, ProviderCatalogKeyListQuery, ProviderCatalogReadRepository,
|
ProviderCatalogKeyListOrder, ProviderCatalogKeyListQuery, StoredProviderCatalogEndpoint,
|
||||||
StoredProviderCatalogEndpoint, StoredProviderCatalogKey, StoredProviderCatalogProvider,
|
StoredProviderCatalogKey, StoredProviderCatalogProvider,
|
||||||
};
|
};
|
||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user