trivial clippy fixes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
b096c590eb
commit
8c0bbc0d97
@ -1252,7 +1252,7 @@ pub fn garbage_collection_status(
|
||||
if let Some(ref upid) = status_in_memory.upid {
|
||||
let mut computed_schedule: JobScheduleStatus = JobScheduleStatus::default();
|
||||
if let Some(state) = state_file {
|
||||
if let Ok(cs) = compute_schedule_status(&state, Some(&upid)) {
|
||||
if let Ok(cs) = compute_schedule_status(&state, Some(upid)) {
|
||||
computed_schedule = cs;
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ async fn garbage_collection_list_jobs(param: Value) -> Result<Value, Error> {
|
||||
|
||||
let path = "api2/json/admin/gc";
|
||||
|
||||
let mut result = client.get(&path, None).await?;
|
||||
let mut result = client.get(path, None).await?;
|
||||
let mut data = result["data"].take();
|
||||
let return_type = &api2::admin::gc::API_METHOD_LIST_ALL_GC_JOBS.returns;
|
||||
|
||||
|
@ -28,7 +28,7 @@ fn test_alloc_writable_media_1() -> Result<(), Error> {
|
||||
|
||||
let mut pool = MediaPool::new(
|
||||
"p1",
|
||||
&testdir,
|
||||
testdir,
|
||||
MediaSetPolicy::ContinueCurrent,
|
||||
RetentionPolicy::KeepForever,
|
||||
None,
|
||||
|
@ -30,7 +30,7 @@ fn test_current_set_usable_1() -> Result<(), Error> {
|
||||
|
||||
let pool = MediaPool::new(
|
||||
"p1",
|
||||
&testdir,
|
||||
testdir,
|
||||
MediaSetPolicy::AlwaysCreate,
|
||||
RetentionPolicy::KeepForever,
|
||||
None,
|
||||
|
@ -26,7 +26,7 @@ fn create_testdir(name: &str) -> Result<PathBuf, Error> {
|
||||
fn test_media_state_db() -> Result<(), Error> {
|
||||
let testdir = create_testdir("test_media_state_db")?;
|
||||
|
||||
let mut inventory = Inventory::load(&testdir)?;
|
||||
let mut inventory = Inventory::load(testdir)?;
|
||||
|
||||
let uuid1: Uuid = inventory.generate_free_tape("tape1", 0);
|
||||
|
||||
@ -75,7 +75,7 @@ fn test_media_state_db() -> Result<(), Error> {
|
||||
#[test]
|
||||
fn test_list_pool_media() -> Result<(), Error> {
|
||||
let testdir = create_testdir("test_list_pool_media")?;
|
||||
let mut inventory = Inventory::load(&testdir)?;
|
||||
let mut inventory = Inventory::load(testdir)?;
|
||||
|
||||
let ctime = 0;
|
||||
|
||||
@ -198,7 +198,7 @@ fn test_latest_media_set() -> Result<(), Error> {
|
||||
assert_eq!(media.label.label_text, label);
|
||||
};
|
||||
|
||||
let mut inventory = Inventory::load(&testdir)?;
|
||||
let mut inventory = Inventory::load(testdir)?;
|
||||
|
||||
let ctime = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user