Skip to content

Commit 6bf691d

Browse files
committed
Fix formatting
Signed-off-by: David Calavera <[email protected]>
1 parent 36aa8b5 commit 6bf691d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

aws_lambda_builders/workflows/rust_cargo/cargo_lambda.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ def run(self, command, cwd):
109109
stdout = ""
110110
# Create a buffer and use a thread to gather the stderr stream into the buffer
111111
stderr_buf = io.BytesIO()
112-
stderr_thread = threading.Thread(target=shutil.copyfileobj, args=(
113-
cargo_process.stderr, stderr_buf), daemon=True)
112+
stderr_thread = threading.Thread(
113+
target=shutil.copyfileobj, args=(cargo_process.stderr, stderr_buf), daemon=True
114+
)
114115
stderr_thread.start()
115116

116117
# Log every stdout line by iterating

tests/unit/workflows/rust_cargo/test_actions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ def which(cmd, executable_search_paths):
4545

4646
def test_release_build_cargo_command_without_release_mode(self):
4747
cargo = BinaryPath(None, None, None, binary_path="path/to/cargo")
48-
action = RustCargoLambdaBuildAction(
49-
"source_dir", {"cargo": cargo}, None, self.subprocess_cargo_lambda
50-
)
48+
action = RustCargoLambdaBuildAction("source_dir", {"cargo": cargo}, None, self.subprocess_cargo_lambda)
5149
self.assertEqual(
5250
action.build_command(),
5351
["path/to/cargo", "lambda", "build", "--release"],

0 commit comments

Comments
 (0)