Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekmedia committed Aug 15, 2024
1 parent 9a0d577 commit feb5504
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 0 additions & 8 deletions src/rust/src/common.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
use std::path::PathBuf;
use std::str::FromStr;

use lib_ccxr::common::Codec;
use lib_ccxr::common::CommonTimingCtx;
use lib_ccxr::common::Decoder608Report;
Expand All @@ -23,13 +20,8 @@ use lib_ccxr::hardsubx::OcrMode;
use lib_ccxr::time::units::Timestamp;
use lib_ccxr::time::units::TimestampFormat;
use lib_ccxr::util::encoding::Encoding;
use lib_ccxr::util::log::DebugMessageFlag;
use lib_ccxr::util::log::DebugMessageMask;
use palette::white_point::E;
use url::Url;

use crate::bindings::*;
use crate::utils::c_char_to_string;
use crate::utils::null_pointer;
use crate::utils::string_to_c_char;
use crate::utils::string_to_c_chars;
Expand Down
8 changes: 5 additions & 3 deletions src/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ use env_logger::{builder, Target};
use log::{warn, LevelFilter};
use std::ffi::CStr;

use crate::common::ExitCode;

#[cfg(test)]
static mut cb_708: c_int = 0;
#[cfg(test)]
Expand All @@ -57,7 +55,10 @@ extern "C" {
static mut cb_708: c_int;
static mut cb_field1: c_int;
static mut cb_field2: c_int;
static mut ccx_options: ccx_s_options;
}

#[allow(dead_code)]
extern "C" {
static mut MPEG_CLOCK_FREQ: c_int;
static mut tlt_config: ccx_s_teletext_config;
}
Expand Down Expand Up @@ -200,6 +201,7 @@ extern "C" fn ccxr_close_handle(handle: RawHandle) {

extern "C" {
fn version(location: *const c_char);
#[allow(dead_code)]
fn set_binary_mode();
}

Expand Down

0 comments on commit feb5504

Please sign in to comment.