mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:21 +00:00
Update Rust toolchain to 1.89 (#19807)
This commit is contained in:
parent
b22586fa0e
commit
7dfde3b929
101 changed files with 234 additions and 200 deletions
|
@ -619,7 +619,7 @@ impl DocumentQuery {
|
|||
/// Get the path for the document selected by this query, ignoring whether the file exists on disk.
|
||||
///
|
||||
/// Returns the URL's path if this is an unsaved (untitled) document.
|
||||
pub(crate) fn virtual_file_path(&self) -> Cow<Path> {
|
||||
pub(crate) fn virtual_file_path(&self) -> Cow<'_, Path> {
|
||||
self.file_path()
|
||||
.map(Cow::Owned)
|
||||
.unwrap_or_else(|| Cow::Borrowed(Path::new(self.file_url().path())))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue