mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
refactor(svc): tidy the rust services and build tooling (#2735)
This commit is contained in:
1 parent
33737e0f79
commit
6af33c7188
41 files changed
+863
-1304
No files matched your search
@@ -287,15 +287,11 @@ fn extend_runtime_s3_sources(target: &mut Vec<String>, runtime_sources: &Runtime
|
||||
}
|
||||
|
||||
fn extend_from(target: &mut Vec<String>, extra: &[CspSource], defaults: &[&str]) {
|
||||
for source in defaults {
|
||||
if target.iter().any(|existing| existing == source) {
|
||||
continue;
|
||||
}
|
||||
target.push((*source).to_owned());
|
||||
}
|
||||
|
||||
for source in extra {
|
||||
let source = source.as_str();
|
||||
for source in defaults
|
||||
.iter()
|
||||
.copied()
|
||||
.chain(extra.iter().map(CspSource::as_str))
|
||||
{
|
||||
if target.iter().any(|existing| existing == source) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user