Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
danielschemmel committed Jan 17, 2023
1 parent 2b343a5 commit b7d6aa7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions build-info-build/src/build_script_options/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,11 @@ impl BuildScriptOptions {
};

let mut bytes = Vec::new();
const BASE64_ENGINE: base64::engine::GeneralPurpose =
base64::engine::GeneralPurpose::new(
&base64::alphabet::STANDARD,
base64::engine::GeneralPurposeConfig::new()
.with_decode_padding_mode(base64::engine::DecodePaddingMode::Indifferent),
);
const BASE64_ENGINE: base64::engine::GeneralPurpose = base64::engine::GeneralPurpose::new(
&base64::alphabet::STANDARD,
base64::engine::GeneralPurposeConfig::new()
.with_decode_padding_mode(base64::engine::DecodePaddingMode::Indifferent),
);
let string_safe = Base64Encoder::new(&mut bytes, &BASE64_ENGINE);
let mut compressed = XzEncoder::new(string_safe, 9);
bincode::serialize_into(&mut compressed, &build_info).unwrap();
Expand Down

0 comments on commit b7d6aa7

Please sign in to comment.