forked from mirrors/kingfisher
preparing for v1.48.0
This commit is contained in:
parent
b70df66efd
commit
80aef7e6d7
4 changed files with 2 additions and 1059 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -24,8 +24,6 @@ jobs:
|
|||
run: make ubuntu-arm64
|
||||
- name: Run tests
|
||||
run: make tests
|
||||
env:
|
||||
CARGO_BUILD_JOBS: 1
|
||||
|
||||
macos-arm64:
|
||||
name: macOS arm64
|
||||
|
|
|
|||
|
|
@ -925,13 +925,12 @@ pub fn get_base64_strings(input: &[u8]) -> Vec<DecodedData> {
|
|||
i += 1;
|
||||
}
|
||||
|
||||
let mut end = i;
|
||||
let mut eq_count = 0;
|
||||
while i < input.len() && input[i] == b'=' && eq_count < 2 {
|
||||
i += 1;
|
||||
eq_count += 1;
|
||||
}
|
||||
end = i;
|
||||
let end = i;
|
||||
|
||||
let len = end - start;
|
||||
if len >= 32 && len % 4 == 0 {
|
||||
|
|
|
|||
|
|
@ -110,7 +110,6 @@ impl<'a> BlobProcessor<'a> {
|
|||
struct MetadataResult {
|
||||
mime_essence: Option<String>,
|
||||
language: Option<String>,
|
||||
charset: Option<String>,
|
||||
}
|
||||
impl MetadataResult {
|
||||
fn from_blob_and_origin(blob: &Blob, origin: &OriginSet) -> MetadataResult {
|
||||
|
|
@ -119,7 +118,6 @@ impl MetadataResult {
|
|||
let mime_essence = Some(tree_magic_mini::from_u8(bytes).to_string());
|
||||
let inspector = ContentInspector::default();
|
||||
let language = blob_path.and_then(|p| inspector.guess_language(p, bytes));
|
||||
let charset = inspector.guess_charset(bytes);
|
||||
MetadataResult { mime_essence, language, charset }
|
||||
MetadataResult { mime_essence, language }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue