Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dragazo committed Jul 25, 2024
1 parent a330b0a commit d440748
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions z3/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -932,8 +932,14 @@ impl<'ctx> Real<'ctx> {

pub fn approx(&self, precision: usize) -> ::std::string::String {
let s = unsafe {
CStr::from_ptr(Z3_get_numeral_decimal_string(self.ctx.z3_ctx, self.z3_ast, precision as _))
}.to_str().unwrap();
CStr::from_ptr(Z3_get_numeral_decimal_string(
self.ctx.z3_ctx,
self.z3_ast,
precision as _,
))
}
.to_str()
.unwrap();
s.strip_suffix("?").unwrap_or(s).to_owned()
}
pub fn approx_f64(&self) -> f64 {
Expand Down
2 changes: 1 addition & 1 deletion z3/tests/ops.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use z3::{
ast,
ast::{Array, Ast, AstKind, Bool, Dynamic, Float, Int, Real, BV},
Config, Context, DeclKind, FuncDecl, Sort, Solver, SatResult
Config, Context, DeclKind, FuncDecl, SatResult, Solver, Sort,
};

#[test]
Expand Down

0 comments on commit d440748

Please sign in to comment.