Skip to content

Commit

Permalink
ignore lint warning:non_local_definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
huiminghao committed Dec 6, 2024
1 parent c537f60 commit 3e31b59
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions application/xiu/src/config/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
failure::{Backtrace, Fail},
std::{fmt, io::Error},
Expand Down
1 change: 1 addition & 0 deletions library/bytesio/src/bits_errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use super::bytes_errors::BytesReadError;
use super::bytes_errors::BytesWriteError;
use failure::{Backtrace, Fail};
Expand Down
1 change: 1 addition & 0 deletions library/bytesio/src/bytes_errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use super::bytesio_errors::BytesIOError;
use std::io;
// use tokio::time::Elapsed;
Expand Down
1 change: 1 addition & 0 deletions library/bytesio/src/bytesio_errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use failure::{Backtrace, Fail};
use std::fmt;
use std::io;
Expand Down
1 change: 1 addition & 0 deletions library/codec/h264/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use bytesio::bits_errors::BitError;
use failure::{Backtrace, Fail};
use std::fmt;
Expand Down
1 change: 1 addition & 0 deletions library/common/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use failure::{Backtrace, Fail};
use std::fmt;

Expand Down
1 change: 1 addition & 0 deletions library/container/flv/src/amf0/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
bytesio::bytes_errors::{BytesReadError, BytesWriteError},
failure::{Backtrace, Fail},
Expand Down
1 change: 1 addition & 0 deletions library/container/flv/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
bytesio::bits_errors::BitError,
bytesio::bytes_errors::{BytesReadError, BytesWriteError},
Expand Down
1 change: 1 addition & 0 deletions library/container/mpegts/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
bytesio::bytes_errors::{BytesReadError, BytesWriteError},
failure::{Backtrace, Fail},
Expand Down
1 change: 1 addition & 0 deletions library/logger/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use failure::Fail;

pub struct LogError {
Expand Down
1 change: 1 addition & 0 deletions library/streamhub/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use bytesio::bytes_errors::BytesReadError;
use bytesio::bytes_errors::BytesWriteError;
use failure::Backtrace;
Expand Down
1 change: 1 addition & 0 deletions protocol/hls/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
failure::{Backtrace, Fail},
std::fmt,
Expand Down
1 change: 1 addition & 0 deletions protocol/httpflv/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use streamhub::errors::StreamHubError;

use {
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/cache/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
crate::chunk::errors::PackError,
bytesio::bytes_errors::BytesReadError,
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/chunk/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
failure::{Backtrace, Fail},
bytesio::bytes_errors::{BytesReadError, BytesWriteError},
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/handshake/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
bytesio::bytes_errors::{BytesReadError, BytesWriteError},
failure::{Backtrace, Fail},
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/messages/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
crate::{
protocol_control_messages::errors::ProtocolControlMessageReaderError,
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/netconnection/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
crate::chunk::errors::PackError,
failure::{Backtrace, Fail},
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/netstream/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
crate::chunk::errors::PackError,
failure::{Backtrace, Fail},
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/protocol_control_messages/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
failure::{Backtrace, Fail},
bytesio::bytes_errors::{BytesReadError, BytesWriteError},
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/relay/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
failure::Fail,
std::{fmt, io::Error},
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/remuxer/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
crate::{cache::errors::MetadataError, session::errors::SessionError},
bytesio::bytes_errors::{BytesReadError, BytesWriteError},
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/session/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
crate::{
cache::errors::CacheError,
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/user_control_messages/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
bytesio::bytes_errors::{BytesReadError, BytesWriteError},
failure::{Backtrace, Fail},
Expand Down
1 change: 1 addition & 0 deletions protocol/rtmp/src/utils/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
failure::{Backtrace, Fail},
std::fmt,
Expand Down
1 change: 1 addition & 0 deletions protocol/rtsp/src/relay/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
failure::Fail,
std::{fmt, io::Error},
Expand Down
1 change: 1 addition & 0 deletions protocol/rtsp/src/rtp/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
failure::{Backtrace, Fail},
std::fmt,
Expand Down
1 change: 1 addition & 0 deletions protocol/rtsp/src/rtp/rtcp/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use bytesio::bytes_errors::BytesReadError;
use bytesio::bytes_errors::BytesWriteError;
use failure::Fail;
Expand Down
1 change: 1 addition & 0 deletions protocol/rtsp/src/session/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
crate::rtp::errors::{PackerError, UnPackerError},
bytesio::bytes_errors::BytesReadError,
Expand Down
1 change: 1 addition & 0 deletions protocol/webrtc/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use {
audiopus::error::Error as OpusError,
failure::{Backtrace, Fail},
Expand Down
1 change: 1 addition & 0 deletions protocol/webrtc/src/session/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(non_local_definitions)]
use streamhub::errors::StreamHubError;
use {
bytesio::bytes_errors::BytesReadError,
Expand Down

0 comments on commit 3e31b59

Please sign in to comment.