Fix warnings

This commit is contained in:
Dominik Werder
2025-03-07 11:46:51 +01:00
parent ab84858e1b
commit f8b3c1533b
39 changed files with 1208 additions and 886 deletions

View File

@@ -42,3 +42,6 @@ streams = { path = "../../../daqbuf-streams", package = "daqbuf-streams" }
streamio = { path = "../streamio" }
httpclient = { path = "../httpclient" }
bitshuffle = { path = "../../../daqbuf-bitshuffle", package = "daqbuf-bitshuffle" }
[features]
DISABLED = []

View File

@@ -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)

View File

@@ -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;