mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Auto merge of #17315 - hamirmahal:style/simplify-string-interpolation, r=Veykril
style: simplify string interpolation
This commit is contained in:
commit
cb6b808185
43 changed files with 71 additions and 79 deletions
|
@ -106,7 +106,7 @@ impl AbsPathBuf {
|
|||
/// Panics if `path` is not absolute.
|
||||
pub fn assert(path: Utf8PathBuf) -> AbsPathBuf {
|
||||
AbsPathBuf::try_from(path)
|
||||
.unwrap_or_else(|path| panic!("expected absolute path, got {}", path))
|
||||
.unwrap_or_else(|path| panic!("expected absolute path, got {path}"))
|
||||
}
|
||||
|
||||
/// Wrap the given absolute path in `AbsPathBuf`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue