Fix warnings
This commit is contained in:
@@ -79,7 +79,7 @@ async fn read_local_config_real(
|
||||
Ok(buf) => parse_config(&buf),
|
||||
Err(e) => match e.kind() {
|
||||
ErrorKind::NotFound => Err(ConfigParseError::FileNotFound),
|
||||
ErrorKind::PermissionDenied => Err(ConfigParseError::PermissionDenied(path.clone())),
|
||||
ErrorKind::PermissionDenied => Err(ConfigParseError::PermissionDenied(path.to_string_lossy().into())),
|
||||
e => {
|
||||
error!("read_local_config_real {e:?}");
|
||||
Err(ConfigParseError::IO)
|
||||
|
||||
@@ -282,7 +282,7 @@ impl Stream for EventChunkerMultifile {
|
||||
}
|
||||
|
||||
// TODO re-enable tests generate data on the fly.
|
||||
#[cfg(DISABLED)]
|
||||
#[cfg(feature = "DISABLED")]
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::eventchunker::EventChunkerConf;
|
||||
|
||||
Reference in New Issue
Block a user