cargo fmt · RustPython/RustPython@7aebbc8 · GitHub
Skip to content

Commit 7aebbc8

Browse files
committed
cargo fmt
1 parent c4d4432 commit 7aebbc8

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

jit/src/instructions.rs

Lines changed: 2 additions & 2 deletions

jit/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,16 @@ impl TryFrom<AbiValue> for bool {
250250
fn try_from(value: AbiValue) -> Result<Self, Self::Error> {
251251
match value {
252252
AbiValue::Bool(b) => Ok(b),
253-
_ => Err(())
253+
_ => Err(()),
254254
}
255255
}
256256
}
257257

258258
fn type_check(ty: &JitType, val: &AbiValue) -> Result<(), JitArgumentError> {
259259
match (ty, val) {
260-
(JitType::Int, AbiValue::Int(_)) | (JitType::Float, AbiValue::Float(_)) |
261-
(JitType::Bool, AbiValue::Bool(_)) => Ok(()),
260+
(JitType::Int, AbiValue::Int(_))
261+
| (JitType::Float, AbiValue::Float(_))
262+
| (JitType::Bool, AbiValue::Bool(_)) => Ok(()),
262263
_ => Err(JitArgumentError::ArgumentTypeMismatch),
263264
}
264265
}

jit/tests/bool_tests.rs

Lines changed: 0 additions & 1 deletion

0 commit comments

Comments
 (0)