Skip to content

Commit 1bbaaea

Browse files
authored
Merge branch 'main' into ps/update-uniffi
2 parents 7ae9bad + d7a86a6 commit 1bbaaea

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.github/workflows/scan.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ on:
77
- "main"
88
- "rc"
99
- "hotfix-rc"
10+
pull_request:
11+
types: [opened, synchronize, reopened]
12+
branches-ignore:
13+
- main
1014
pull_request_target:
11-
types: [opened, synchronize]
15+
types: [opened, synchronize, reopened]
16+
branches:
17+
- "main"
1218

1319
jobs:
1420
check-run:

crates/bitwarden-wasm-internal/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ fn main() {
1111
}
1212

1313
fn run(args: &[&str]) -> Result<String, std::io::Error> {
14-
use std::io::{Error, ErrorKind};
14+
use std::io::Error;
1515
let out = Command::new(args[0]).args(&args[1..]).output()?;
1616
if !out.status.success() {
17-
return Err(Error::new(ErrorKind::Other, "Command not successful"));
17+
return Err(Error::other("Command not successful"));
1818
}
1919
Ok(String::from_utf8(out.stdout)
20-
.map_err(|e| Error::new(ErrorKind::Other, e.to_string()))?
20+
.map_err(Error::other)?
2121
.trim()
2222
.to_string())
2323
}

crates/memory-testing/src/bin/capture-dumps.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ fn dump_process_to_bytearray(pid: u32, output_dir: &Path, output_name: &Path) ->
1111
.output()?;
1212

1313
if !output.status.success() {
14-
return io::Result::Err(io::Error::new(
15-
io::ErrorKind::Other,
16-
format!("Failed to dump process: {:?}", output),
17-
));
14+
return io::Result::Err(io::Error::other(format!(
15+
"Failed to dump process: {:?}",
16+
output
17+
)));
1818
}
1919

2020
let core_path = format!("core.{}", pid);

0 commit comments

Comments
 (0)