impl on crate::Forgejo
instead of Forgejo
This commit is contained in:
parent
c17c1f8638
commit
4c7ec23ab7
|
@ -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())?);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue