File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
10
10
([ #1109 ] ( https://github.com/nix-rust/nix/pull/1109 ) )
11
11
12
12
``` rust
13
- use nix :: fcntl :: {readlink, readlinkat};
14
-
13
+ # use nix :: fcntl :: {readlink, readlinkat};
15
14
// the buffer argument of `readlink` and `readlinkat` has been removed,
16
15
// and the return value is now an owned type (`OsString`).
17
16
// Existing code can be updated by removing the buffer argument
18
17
// and removing any clone or similar operation on the output
19
18
20
19
// old code `readlink(&path, &mut buf)` can be replaced with the following
21
- readlink (& path ); // this returns OsString
20
+ let _ : OsString = readlink (& path );
22
21
23
22
// old code `readlinkat(dirfd, &path, &mut buf)` can be replaced with the following
24
- readlinkat (dirfd , & path ); // this returns OsString
23
+ let _ : OsString = readlinkat (dirfd , & path );
25
24
```
26
25
27
26
### Fixed
You can’t perform that action at this time.
0 commit comments