manual: Fix URLs to rustdoc pages

Now that the manual lives at /manual/, we need to use absolute URLs
to link to rustdoc content.
This commit is contained in:
Wilfred Hughes 2025-02-11 12:10:32 -08:00
parent 8aa4ae5e69
commit 3251d1caa7

View file

@ -117,7 +117,7 @@ impl fmt::Display for Location {
let path = self.file.strip_prefix(project_root()).unwrap().display().to_string();
let path = path.replace('\\', "/");
let name = self.file.file_name().unwrap();
write!(f, " [{}]({}#{}) ", name.to_str().unwrap(), path, self.line)
write!(f, " [{}](/{}#{}) ", name.to_str().unwrap(), path, self.line)
}
}