Skip to content

Commit

Permalink
Another attempt to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDiekmann committed Sep 30, 2024
1 parent da88074 commit 177e17f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/hash-graph/libs/type-fetcher/src/fetcher_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ impl FetchServer {
/// - If the predefined types directory cannot be found
/// - If a predefined type cannot be deserialized
pub fn load_predefined_types(&mut self) -> Result<(), Report<io::Error>> {
let directory = PathBuf::from(file!());
let directory = PathBuf::from(file!())
.canonicalize()
.attach_printable_lazy(|| file!().to_string())?;

Check warning

Code scanning / clippy

to_string() called on a &str Warning

to\_string() called on a &str
let directory = directory.parent().ok_or_else(|| {
io::Error::new(
io::ErrorKind::NotFound,
Expand Down

0 comments on commit 177e17f

Please sign in to comment.