summaryrefslogtreecommitdiffstats
path: root/src/displace.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/displace.rs')
-rw-r--r--src/displace.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displace.rs b/src/displace.rs
index 4c19349..d354e84 100644
--- a/src/displace.rs
+++ b/src/displace.rs
@@ -42,7 +42,7 @@ pub async fn displace(opts: &Arc<Options>, input: LineIn) -> Result<OsString, Di
let after = opts.engine.replace(&before);
if *before == after {
- Ok(OsString::default())
+ Ok(OsString::new())
} else {
let print = match (&opts.action, input) {
(Action::Preview, LineIn::Entire(_)) => udiff(None, opts.unified, &name, &before, &after),