# Use \`&Snapshot\` directly instead of \`impl Into\<Content\<'a\>\>\` · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/924e1578ea237095d3f9c4053f4d3d05fcfb523b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 924e1578ea237095d3f9c4053f4d3d05fcfb523b

Requested commit: 924e1578ea237095d3f9c4053f4d3d05fcfb523b

Commit: 924e1578ea237095d3f9c4053f4d3d05fcfb523b

Tree: e902a4f653d865827828dba0369c8f0bf2119eb1

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Use `&Snapshot` directly instead of `impl Into<Content<'a>>`

The text::Buffer and its snapshot already used the same representation
for their content, so we can just make Buffer deref to a Snapshot.

```

## Parents

- [36546463e6b8fb2b3dd5ab17404dfcdc492302a1](https://git.cafe/gitcafe/zed/commit/36546463e6b8fb2b3dd5ab17404dfcdc492302a1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/924e1578ea237095d3f9c4053f4d3d05fcfb523b?format=markdown)
