mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
cargo fmt
This commit is contained in:
parent
bec7bbf96c
commit
3a35cd6c8f
294 changed files with 6809 additions and 3911 deletions
|
|
@ -35,7 +35,12 @@ fn source_imports_kafka(file_bytes: &[u8]) -> bool {
|
|||
|
||||
fn extract_topic(file_bytes: &[u8]) -> String {
|
||||
let text = std::str::from_utf8(file_bytes).unwrap_or("");
|
||||
for needle in ["topics = \"", "topics=\"", "topics = {\"", "subscribe(Arrays.asList(\""] {
|
||||
for needle in [
|
||||
"topics = \"",
|
||||
"topics=\"",
|
||||
"topics = {\"",
|
||||
"subscribe(Arrays.asList(\"",
|
||||
] {
|
||||
if let Some(idx) = text.find(needle) {
|
||||
let after = &text[idx + needle.len()..];
|
||||
if let Some(end) = after.find('"') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue