Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
twizmwazin committed Nov 1, 2024
1 parent 6c8ccbd commit f32a4d5
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
6 changes: 5 additions & 1 deletion crates/clarirs_core/src/ast/bitvec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ impl<'c> Op<'c> for BitVecOp<'c> {

fn get_annotations(&self) -> Vec<Annotation> {
if let BitVecOp::Annotated(inner, anno) = self {
inner.get_annotations().into_iter().chain(vec![anno.clone()]).collect()
inner
.get_annotations()
.into_iter()
.chain(vec![anno.clone()])
.collect()
} else {
vec![]
}
Expand Down
6 changes: 5 additions & 1 deletion crates/clarirs_core/src/ast/bool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ impl<'c> Op<'c> for BooleanOp<'c> {

fn get_annotations(&self) -> Vec<Annotation> {
if let BooleanOp::Annotated(inner, anno) = self {
inner.get_annotations().into_iter().chain(vec![anno.clone()]).collect()
inner
.get_annotations()
.into_iter()
.chain(vec![anno.clone()])
.collect()
} else {
vec![]
}
Expand Down
6 changes: 5 additions & 1 deletion crates/clarirs_core/src/ast/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ impl<'c> Op<'c> for FloatOp<'c> {

fn get_annotations(&self) -> Vec<Annotation> {
if let FloatOp::Annotated(inner, anno) = self {
inner.get_annotations().into_iter().chain(vec![anno.clone()]).collect()
inner
.get_annotations()
.into_iter()
.chain(vec![anno.clone()])
.collect()
} else {
vec![]
}
Expand Down
6 changes: 5 additions & 1 deletion crates/clarirs_core/src/ast/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ impl<'c> Op<'c> for StringOp<'c> {

fn get_annotations(&self) -> Vec<Annotation> {
if let StringOp::Annotated(inner, anno) = self {
inner.get_annotations().into_iter().chain(vec![anno.clone()]).collect()
inner
.get_annotations()
.into_iter()
.chain(vec![anno.clone()])
.collect()
} else {
vec![]
}
Expand Down
6 changes: 5 additions & 1 deletion crates/clarirs_py/src/ast/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ impl PyAstString {
self.inner.depth() == 1
}

fn annotate(&self, py: Python, annotation: Bound<PyAny>) -> Result<Py<PyAstString>, ClaripyError> {
fn annotate(
&self,
py: Python,
annotation: Bound<PyAny>,
) -> Result<Py<PyAstString>, ClaripyError> {
let pickle_dumps = py.import_bound("pickle")?.getattr("dumps")?;
let annotation_bytes = pickle_dumps
.call1((&annotation,))?
Expand Down

0 comments on commit f32a4d5

Please sign in to comment.