mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Formatting
This commit is contained in:
parent
b5e87ac111
commit
2b2b9f8c73
2 changed files with 5 additions and 6 deletions
|
@ -1,9 +1,9 @@
|
|||
//! Tools to work with format string literals for the `format_args!` family of macros.
|
||||
use crate::syntax_helpers::node_ext::macro_call_for_string_token;
|
||||
use syntax::{
|
||||
ast::{self, IsString},
|
||||
TextRange, TextSize,
|
||||
};
|
||||
use crate::syntax_helpers::node_ext::macro_call_for_string_token;
|
||||
|
||||
pub fn is_format_string(string: &ast::String) -> bool {
|
||||
// Check if `string` is a format string argument of a macro invocation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue