1
0
Fork 0

impl on crate::Forgejo instead of Forgejo

This commit is contained in:
Cyborus 2024-01-16 17:23:51 -05:00
parent c17c1f8638
commit 4c7ec23ab7
No known key found for this signature in database

View file

@ -14,7 +14,7 @@ fn main() -> eyre::Result<()> {
let spec = get_spec()?; let spec = get_spec()?;
let mut s = String::new(); let mut s = String::new();
s.push_str("use crate::ForgejoError;\n"); 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 { for (path, item) in &spec.paths {
s.push_str(&create_methods_for_path(&spec, path, item).wrap_err_with(|| path.clone())?); s.push_str(&create_methods_for_path(&spec, path, item).wrap_err_with(|| path.clone())?);
} }