Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to edition 2021 #202

Merged
merged 2 commits into from Dec 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
keywords = ["base64", "utf8", "encode", "decode", "no_std"]
categories = ["encoding"]
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
rust-version = "1.57.0"

[[bench]]
Expand Down
1 change: 1 addition & 0 deletions fuzz/Cargo.toml
Expand Up @@ -4,6 +4,7 @@ name = "base64-fuzz"
version = "0.0.1"
authors = ["Automatically generated"]
publish = false
edition = "2021"

[package.metadata]
cargo-fuzz = true
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzzers/decode_random.rs
Expand Up @@ -11,5 +11,5 @@ fuzz_target!(|data: &[u8]| {

// The data probably isn't valid base64 input, but as long as it returns an error instead
// of crashing, that's correct behavior.
let _ = decode_engine(&data, &engine);
let _ = decode_engine(data, &engine);
});
2 changes: 1 addition & 1 deletion fuzz/fuzzers/roundtrip.rs
Expand Up @@ -5,7 +5,7 @@ extern crate base64;
use base64::engine::DEFAULT_ENGINE;

fuzz_target!(|data: &[u8]| {
let encoded = base64::encode_engine(&data, &DEFAULT_ENGINE);
let encoded = base64::encode_engine(data, &DEFAULT_ENGINE);
let decoded = base64::decode_engine(&encoded, &DEFAULT_ENGINE).unwrap();
assert_eq!(data, decoded.as_slice());
});
2 changes: 1 addition & 1 deletion fuzz/fuzzers/roundtrip_no_pad.rs
Expand Up @@ -11,7 +11,7 @@ fuzz_target!(|data: &[u8]| {
.with_decode_padding_mode(engine::DecodePaddingMode::RequireNone);
let engine = fast_portable::FastPortable::from(&base64::alphabet::STANDARD, config);

let encoded = base64::encode_engine(&data, &engine);
let encoded = base64::encode_engine(data, &engine);
let decoded = base64::decode_engine(&encoded, &engine).unwrap();
assert_eq!(data, decoded.as_slice());
});
2 changes: 1 addition & 1 deletion fuzz/fuzzers/roundtrip_random_config.rs
Expand Up @@ -9,7 +9,7 @@ mod utils;
fuzz_target!(|data: &[u8]| {
let engine = utils::random_engine(data);

let encoded = encode_engine(&data, &engine);
let encoded = encode_engine(data, &engine);
let decoded = decode_engine(&encoded, &engine).unwrap();
assert_eq!(data, decoded.as_slice());
});