Fix warnings: add Debug derive, prefix unused vars
This commit is contained in:
parent
351708f3fa
commit
f490eb09eb
2 changed files with 4 additions and 3 deletions
|
|
@ -276,6 +276,7 @@ pub struct McpLoadError {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// MCP CSV Loader
|
/// MCP CSV Loader
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct McpCsvLoader {
|
pub struct McpCsvLoader {
|
||||||
/// Base work path
|
/// Base work path
|
||||||
work_path: String,
|
work_path: String,
|
||||||
|
|
@ -421,11 +422,11 @@ impl McpCsvLoader {
|
||||||
.get(7)
|
.get(7)
|
||||||
.map(|s| s.trim().to_string())
|
.map(|s| s.trim().to_string())
|
||||||
.filter(|s| !s.is_empty());
|
.filter(|s| !s.is_empty());
|
||||||
let risk_level = columns
|
let _risk_level = columns
|
||||||
.get(8)
|
.get(8)
|
||||||
.map(|s| s.trim().to_string())
|
.map(|s| s.trim().to_string())
|
||||||
.filter(|s| !s.is_empty());
|
.filter(|s| !s.is_empty());
|
||||||
let requires_approval = columns
|
let _requires_approval = columns
|
||||||
.get(9)
|
.get(9)
|
||||||
.map(|s| s.trim().to_lowercase() == "true")
|
.map(|s| s.trim().to_lowercase() == "true")
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use anyhow::Result;
|
||||||
use aws_config::BehaviorVersion;
|
use aws_config::BehaviorVersion;
|
||||||
use aws_sdk_s3::Client;
|
use aws_sdk_s3::Client;
|
||||||
use diesel::{Connection, RunQueryDsl};
|
use diesel::{Connection, RunQueryDsl};
|
||||||
use log::{debug, error, info, trace, warn};
|
use log::{debug, error, info, warn};
|
||||||
use rand::distr::Alphanumeric;
|
use rand::distr::Alphanumeric;
|
||||||
use rcgen::{
|
use rcgen::{
|
||||||
BasicConstraints, CertificateParams, DistinguishedName, DnType, IsCa, Issuer, KeyPair,
|
BasicConstraints, CertificateParams, DistinguishedName, DnType, IsCa, Issuer, KeyPair,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue