mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-25 02:57:01 -06:00
style: apply rustfmt formatting
This commit is contained in:
@@ -14,7 +14,7 @@ use deckcraft_model::{
|
||||
};
|
||||
use serde_json::{Value, json};
|
||||
|
||||
use super::{bad, has_selection, str_param, xfrm_of, CommandSpec};
|
||||
use super::{CommandSpec, bad, has_selection, str_param, xfrm_of};
|
||||
use crate::{EngineError, Result, Session};
|
||||
|
||||
/// Deepest outline level the Text Pane allows.
|
||||
|
||||
@@ -1238,7 +1238,8 @@ impl FontDb {
|
||||
}
|
||||
}
|
||||
}
|
||||
let mut paths: Vec<std::path::PathBuf> = self.catalog.read().unwrap_or_else(std::sync::PoisonError::into_inner).iter().map(|e| e.path.clone()).collect();
|
||||
let mut paths: Vec<std::path::PathBuf> =
|
||||
self.catalog.read().unwrap_or_else(std::sync::PoisonError::into_inner).iter().map(|e| e.path.clone()).collect();
|
||||
paths.sort();
|
||||
paths.dedup();
|
||||
for p in paths {
|
||||
|
||||
@@ -512,13 +512,8 @@ impl Chart {
|
||||
} else {
|
||||
vec![]
|
||||
};
|
||||
let mut c = Chart {
|
||||
kind,
|
||||
categories,
|
||||
gridlines: true,
|
||||
legend: (kind == ChartType::BoxWhisker).then(|| "b".to_string()),
|
||||
..Default::default()
|
||||
};
|
||||
let mut c =
|
||||
Chart { kind, categories, gridlines: true, legend: (kind == ChartType::BoxWhisker).then(|| "b".to_string()), ..Default::default() };
|
||||
for s in 0..n_series {
|
||||
c.series.push(Series {
|
||||
name: format!("Series {}", s + 1),
|
||||
|
||||
Reference in New Issue
Block a user