Skip to content

Commit

Permalink
perf: do not use virtual call when passing os.Rename as rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo committed Oct 15, 2023
1 parent fa30377 commit 5166704
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rename.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ package flatfs

import "os"

var rename = os.Rename
func rename(a, b string) error {
return os.Rename(a, b)
}

0 comments on commit 5166704

Please sign in to comment.