Skip to content

Commit

Permalink
Fix imports and text formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Boats McGee authored and shssoichiro committed Nov 1, 2024
1 parent cf155e3 commit e4f7644
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion av1an-core/src/scenes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::collections::HashMap;
use std::process::{exit, Command};
use std::str::FromStr;

use crate::context::Av1anContext;
use anyhow::{anyhow, bail, Result};
use itertools::Itertools;
use nom::branch::alt;
Expand All @@ -13,6 +12,7 @@ use nom::multi::{many1, separated_list0};
use nom::sequence::{preceded, tuple};
use serde::{Deserialize, Serialize};

use crate::context::Av1anContext;
use crate::parse::valid_params;
use crate::settings::{invalid_params, suggest_fix};
use crate::Encoder;
Expand Down
6 changes: 2 additions & 4 deletions av1an-core/src/util.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use std::{
io,
path::{absolute, Path, PathBuf},
};
use std::io;
use std::path::{absolute, Path, PathBuf};

/// Count the number of elements passed to this macro.
///
Expand Down
8 changes: 3 additions & 5 deletions av1an-core/src/vapoursynth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ use std::collections::HashSet;
use std::fs::File;
use std::io::Write;
use std::path::{Path, PathBuf};
use std::process::Command;

use anyhow::{anyhow, bail};
use once_cell::sync::Lazy;
use path_abs::PathAbs;
use std::process::Command;
use vapoursynth::prelude::*;
use vapoursynth::video_info::VideoInfo;

use crate::util::to_absolute_path;

use super::ChunkMethod;
use crate::util::to_absolute_path;

static VAPOURSYNTH_PLUGINS: Lazy<HashSet<String>> = Lazy::new(|| {
let environment = Environment::new().expect("Failed to initialize VapourSynth environment");
Expand Down Expand Up @@ -251,8 +250,7 @@ pub fn create_vs_file(
)
.replace(
"cache_file = os.environ.get('AV1AN_CACHE_FILE', None)",
&format!(
"cache_file = {:?}", to_absolute_path(cache_file.as_path())?),
&format!("cache_file = {:?}", to_absolute_path(cache_file.as_path())?),
);

load_script.write_all(load_script_text.as_bytes())?;
Expand Down

0 comments on commit e4f7644

Please sign in to comment.