sapling/eden/mononoke/pushrebase
Mark Thomas 354c42f32c tests_utils: add_file content can take ownership
Summary:
Change the signature of `CreateCommitContext::as_file` and its associated
functions so that content is `impl Into<String>`, rather than
`impl AsRef<str>`.  The content will immediately be converted to a `String`
anyway, so we can avoid a string copy if the caller already has a string that
can be moved.

Reviewed By: krallin

Differential Revision: D21743429

fbshipit-source-id: d54914386439489fe4e47e37ff9a75c52b1a0443
2020-05-28 06:22:33 -07:00
..
src tests_utils: add_file content can take ownership 2020-05-28 06:22:33 -07:00
Cargo.toml mononoke: add merge commit validation 2020-05-20 11:17:21 -07:00