rust/crates/ide/src
Jacob Pratt bd8a903548
Remove unnecessary allocation
The case-insensitive prefix/suffix check can be performed
character-by-character. This allows the check to be done without having
to allocate a new string. As a side effect, it's also no longer
necessary to convert the entire string to lowercase, as it's done as
needed. As the only case equality we're handling is ASCII, this
operation can be further optimized by using byte equality, rather than
character equality.
2021-01-09 21:36:38 -05:00
..
diagnostics cargo fmt 2021-01-07 19:01:33 +00:00
display Implement hover for ConstParam 2021-01-04 14:18:31 +01:00
references Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
syntax_highlighting Refactor highlighting 2021-01-09 23:07:32 +03:00
typing Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
call_hierarchy.rs Simplify 2021-01-09 00:17:34 +01:00
diagnostics.rs Switch test marker 2021-01-07 19:01:33 +00:00
display.rs Don't expose SyntaxKind from IDE API 2020-12-18 19:28:48 +03:00
doc_links.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
expand_macro.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
extend_selection.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
file_structure.rs Don't expose SyntaxKind from IDE API 2020-12-18 19:28:48 +03:00
fixture.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
fn_references.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
folding_ranges.rs Use items can also have doc comments 2020-12-04 17:09:40 +01:00
goto_definition.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
goto_implementation.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
goto_type_definition.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
hover.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
inlay_hints.rs Remove unnecessary allocation 2021-01-09 21:36:38 -05:00
join_lines.rs Better fixture highlight 2021-01-07 19:11:27 +03:00
lib.rs Shorten names 2021-01-09 14:48:15 +03:00
markdown_remove.rs Remove more unreachable pubs 2020-11-02 16:58:33 +01:00
markup.rs Rename ra_ide -> ide 2020-08-13 17:58:27 +02:00
matching_brace.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
parent_module.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
prime_caches.rs Re-export base_db from ide_db 2020-10-24 11:39:57 +03:00
references.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
runnables.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
status.rs Use ExpandResult instead of MacroResult 2020-11-26 16:48:17 +01:00
syntax_highlighting.rs Refactor highlighting 2021-01-09 23:07:32 +03:00
syntax_tree.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
typing.rs Change <|> to $0 - Rebase 2021-01-07 12:09:23 +00:00
view_hir.rs Address review suggestion, fix tidy tests 2021-01-01 19:25:18 +00:00