Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vponomaryov committed Nov 5, 2024
1 parent 5049c71 commit 0ad2000
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 90 deletions.
2 changes: 1 addition & 1 deletion src/report/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::config::{RunCommand, PRINT_RETRY_ERROR_LIMIT, WeightedFunction};
use crate::config::{RunCommand, WeightedFunction, PRINT_RETRY_ERROR_LIMIT};
use crate::stats::percentiles::Percentile;
use crate::stats::{BenchmarkCmp, BenchmarkStats, Mean, Sample, Significance};
use chrono::{DateTime, Local, TimeZone};
Expand Down
3 changes: 2 additions & 1 deletion src/scripting/bind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ fn to_scylla_value(v: &Value, typ: &ColumnType) -> Result<CqlValue, CassError> {
(Value::Bytes(v), ColumnType::Blob) => Ok(CqlValue::Blob(v.borrow_ref().unwrap().to_vec())),
(Value::Vec(v), ColumnType::Blob) => {
let v: Vec<Value> = v.borrow_ref().unwrap().to_vec();
let byte_vec: Vec<u8> = v.into_iter()
let byte_vec: Vec<u8> = v
.into_iter()
.map(|value| value.as_byte().unwrap())
.collect();
Ok(CqlValue::Blob(byte_vec))
Expand Down
Loading

0 comments on commit 0ad2000

Please sign in to comment.