We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1842e9 commit 8deba19Copy full SHA for 8deba19
src/manifest_schema.rs
@@ -845,8 +845,7 @@ fn test_xattr() {
845
let path: PathBuf = temp.path("empty");
846
let file = File::open(&path).expect("should be able to open file");
847
848
- let mut buf = Vec::<u8>::new();
849
- buf.resize(XATTR_MAX_VALUE_SIZE, 0u8);
+ let mut buf = vec![0; XATTR_MAX_VALUE_SIZE];
850
let initial_ret = unsafe {
851
verneuil__getxattr(
852
file.as_raw_fd(),
0 commit comments