From 4c7ec23ab72087f7f150ca578cca8c615c603d7f Mon Sep 17 00:00:00 2001 From: Cyborus Date: Tue, 16 Jan 2024 17:23:51 -0500 Subject: [PATCH] impl on `crate::Forgejo` instead of `Forgejo` --- generator/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/src/main.rs b/generator/src/main.rs index 26e56e7..e735d7b 100644 --- a/generator/src/main.rs +++ b/generator/src/main.rs @@ -14,7 +14,7 @@ fn main() -> eyre::Result<()> { let spec = get_spec()?; let mut s = String::new(); s.push_str("use crate::ForgejoError;\n"); - s.push_str("impl Forgejo {\n"); + s.push_str("impl crate::Forgejo {\n"); for (path, item) in &spec.paths { s.push_str(&create_methods_for_path(&spec, path, item).wrap_err_with(|| path.clone())?); }