mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-21 20:18:06 +02:00
cargo fmt
This commit is contained in:
parent
bec7bbf96c
commit
3a35cd6c8f
294 changed files with 6809 additions and 3911 deletions
|
|
@ -37,7 +37,12 @@ fn source_imports_actioncable(file_bytes: &[u8]) -> bool {
|
|||
|
||||
fn extract_path(file_bytes: &[u8]) -> String {
|
||||
let text = std::str::from_utf8(file_bytes).unwrap_or("");
|
||||
for needle in ["stream_from '", "stream_from \"", "stream_for '", "stream_for \""] {
|
||||
for needle in [
|
||||
"stream_from '",
|
||||
"stream_from \"",
|
||||
"stream_for '",
|
||||
"stream_for \"",
|
||||
] {
|
||||
if let Some(idx) = text.find(needle) {
|
||||
let after = &text[idx + needle.len()..];
|
||||
let close = if needle.ends_with('"') { '"' } else { '\'' };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue