mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-02 08:01:47 -04:00
thought i formatted this
This commit is contained in:
+14
-10
@@ -131,28 +131,32 @@ async fn inner_main() -> Result<(), WrappedErr> {
|
|||||||
let black = flags
|
let black = flags
|
||||||
.black_color
|
.black_color
|
||||||
.as_deref()
|
.as_deref()
|
||||||
.map(|color| parse_color_to_i32(color)
|
.map(|color| {
|
||||||
.map_err(|e| {
|
parse_color_to_i32(color).map_err(|e| {
|
||||||
WrappedErr(
|
WrappedErr(
|
||||||
format!("Couldn't parse black color {color:?}: {e} - is it formatted like a CSS color?")
|
format!(
|
||||||
.into()
|
"Couldn't parse black color {color:?}: {e} - is it formatted like a CSS color?"
|
||||||
|
)
|
||||||
|
.into()
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
)
|
})
|
||||||
.transpose()?
|
.transpose()?
|
||||||
.unwrap_or(MUPDF_BLACK);
|
.unwrap_or(MUPDF_BLACK);
|
||||||
|
|
||||||
let white = flags
|
let white = flags
|
||||||
.white_color
|
.white_color
|
||||||
.as_deref()
|
.as_deref()
|
||||||
.map(|color| parse_color_to_i32(color)
|
.map(|color| {
|
||||||
.map_err(|e| {
|
parse_color_to_i32(color).map_err(|e| {
|
||||||
WrappedErr(
|
WrappedErr(
|
||||||
format!("Couldn't parse white color {color:?}: {e} - is it formatted like a CSS color?")
|
format!(
|
||||||
.into()
|
"Couldn't parse white color {color:?}: {e} - is it formatted like a CSS color?"
|
||||||
|
)
|
||||||
|
.into()
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
)
|
})
|
||||||
.transpose()?
|
.transpose()?
|
||||||
.unwrap_or(MUPDF_WHITE);
|
.unwrap_or(MUPDF_WHITE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user