fix: close stage 0-2 synthetic gates
This commit is contained in:
@@ -1,4 +1,23 @@
|
||||
#![forbid(unsafe_code)]
|
||||
#![cfg_attr(
|
||||
test,
|
||||
allow(
|
||||
clippy::cast_possible_truncation,
|
||||
clippy::cast_possible_wrap,
|
||||
clippy::cast_precision_loss,
|
||||
clippy::expect_used,
|
||||
clippy::float_cmp,
|
||||
clippy::identity_op,
|
||||
clippy::too_many_lines,
|
||||
clippy::uninlined_format_args,
|
||||
clippy::map_unwrap_or,
|
||||
clippy::needless_raw_string_hashes,
|
||||
clippy::semicolon_if_nothing_returned,
|
||||
clippy::type_complexity,
|
||||
clippy::panic,
|
||||
clippy::unwrap_used
|
||||
)
|
||||
)]
|
||||
//! Legacy path normalization and ASCII lookup semantics.
|
||||
|
||||
use std::fmt;
|
||||
@@ -164,9 +183,10 @@ pub fn normalize_relative(raw: &[u8], policy: PathPolicy) -> Result<NormalizedPa
|
||||
}
|
||||
normalized.extend_from_slice(part);
|
||||
}
|
||||
let display = String::from_utf8_lossy(&normalized).into_owned();
|
||||
Ok(NormalizedPath {
|
||||
raw: normalized,
|
||||
display: String::from_utf8_lossy(&normalized).into_owned(),
|
||||
display,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user