]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
refactor: Remove unnecessary explicit non::span constructor
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 22 Sep 2025 16:42:54 +0000 (18:42 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 22 Sep 2025 16:56:28 +0000 (18:56 +0200)
src/ccache/inodecache.cpp

index 0d4c944eca852007954a5ea819563171146b7301..95908e0e4d7902e8282ae1409b0ad9194aa3b945 100644 (file)
@@ -331,8 +331,7 @@ InodeCache::hash_inode(const fs::path& path,
   key.st_size = de.size();
 
   Hash hash;
-  hash.hash(nonstd::span<const uint8_t>(reinterpret_cast<const uint8_t*>(&key),
-                                        sizeof(key)));
+  hash.hash({reinterpret_cast<const uint8_t*>(&key), sizeof(key)});
   digest = hash.digest();
   return true;
 }