Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/common/src/provider/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ fn resolve_path(path: &Path) -> Result<PathBuf, ()> {

#[cfg(windows)]
fn resolve_path(path: &Path) -> Result<PathBuf, ()> {
if let Some(s) = path.to_str() {
if s.starts_with(r"\\.\pipe\") {
return Ok(path.to_path_buf());
}
if let Some(s) = path.to_str()
&& s.starts_with(r"\\.\pipe\")
{
return Ok(path.to_path_buf());
}
Err(())
}
Expand Down
4 changes: 2 additions & 2 deletions crates/common/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ pub fn strip_bytecode_placeholders(bytecode: &BytecodeObject) -> Option<Bytes> {
match &bytecode {
BytecodeObject::Bytecode(bytes) => Some(bytes.clone()),
BytecodeObject::Unlinked(s) => {
// Replace all __$xxx$__ placeholders with 32 zero bytes
let s = (*BYTECODE_PLACEHOLDER_RE).replace_all(s, "00".repeat(40));
// Replace all __$xxx$__ placeholders with 20 zero bytes (40 hex chars)
let s = (*BYTECODE_PLACEHOLDER_RE).replace_all(s, "00".repeat(20));
let bytes = hex::decode(s.as_bytes());
Some(bytes.ok()?.into())
}
Expand Down
2 changes: 1 addition & 1 deletion crates/verify/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl VerificationContext {
.find(&self.target_path, &self.target_name)
.ok_or_eyre("failed to find target artifact when compiling for metadata")?;

artifact.metadata.clone().ok_or_eyre("target artifact does not have an ABI")
artifact.metadata.clone().ok_or_eyre("target artifact does not have metadata")
}

/// Returns [Vec] containing imports of the target file.
Expand Down
Loading