Skip to content

Commit

Permalink
fix: imports
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Aug 15, 2024
1 parent ab66d67 commit d738839
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/rust/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ use std::ptr::addr_of_mut;
use std::str::FromStr;
use std::string::String;

use lib_ccxr::common::*;

use cfg_if::cfg_if;

use lib_ccxr::common::{
Codec, DataSource, Decoder608ColorCode, DtvccServiceCharset, Language, Options, OutputFormat,
SelectCodec, StreamMode, StreamType, TeletextConfig, TeletextPageNumber, DTVCC_MAX_SERVICES,
};
use time::OffsetDateTime;

use crate::args::{self, InFormat};
Expand Down Expand Up @@ -519,6 +517,7 @@ impl OptionsExt for Options {

#[cfg(feature = "hardsubx_ocr")]
{
use lib_ccxr::hardsubx::*;
if args.hardsubx {
self.hardsubx = true;

Expand Down Expand Up @@ -1341,8 +1340,11 @@ impl OptionsExt for Options {
}

#[cfg(feature = "with_libcurl")]
if let Some(ref curlposturl) = args.curlposturl {
self.curlposturl = Url::from_str(curlposturl).ok();
{
use url::Url;
if let Some(ref curlposturl) = args.curlposturl {
self.curlposturl = Url::from_str(curlposturl).ok();
}
}

#[cfg(feature = "enable_sharing")]
Expand Down

0 comments on commit d738839

Please sign in to comment.