cargo fmt
This commit is contained in:
@@ -48,7 +48,9 @@ impl Tool for WriteTool {
|
||||
self.tracker.verify(¶ms.file_path, ¤t)?;
|
||||
}
|
||||
|
||||
let outcome = self.fs.write(¶ms.file_path, params.content.as_bytes())?;
|
||||
let outcome = self
|
||||
.fs
|
||||
.write(¶ms.file_path, params.content.as_bytes())?;
|
||||
|
||||
// Refresh the history entry to reflect the newly-written content,
|
||||
// so a subsequent Edit / Write can proceed without a re-read.
|
||||
@@ -57,7 +59,11 @@ impl Tool for WriteTool {
|
||||
|
||||
let summary = format!(
|
||||
"{} {} ({} bytes)",
|
||||
if outcome.created { "Created" } else { "Overwrote" },
|
||||
if outcome.created {
|
||||
"Created"
|
||||
} else {
|
||||
"Overwrote"
|
||||
},
|
||||
params.file_path.display(),
|
||||
outcome.bytes_written
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user