Skip to content

Commit e682dff

Browse files
committed
Fix doc comments & commas
1 parent de3efd3 commit e682dff

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

odoo-api-macros/src/odoo_web.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ use crate::common::{parse_args, ItemStructNamed};
66
use crate::{Error, Result};
77

88
struct OdooWebArgs {
9-
/// The JSON-RPC "service"
9+
/// The API endpoint (e.g. '/web/session/authenticate')
1010
path: String,
1111

12-
/// Optionally specify a name for the OdooClient impl
12+
/// A (required) name for the service (e.g. 'web_session_authenticate');
13+
/// this maps to the function implemented on OdooClient, (e.g. `client.web_session_authenticate()`)
1314
name: String,
1415

1516
/// Is authentication required, optional, should we skip generating the
@@ -39,7 +40,7 @@ impl TryFrom<AttributeArgs> for OdooWebArgs {
3940
Some(*span),
4041
))?
4142
}
42-
}
43+
},
4344
("name", lit, span) => {
4445
if let Lit::Str(s) = lit {
4546
name = Some(s.value())
@@ -49,7 +50,7 @@ impl TryFrom<AttributeArgs> for OdooWebArgs {
4950
Some(*span),
5051
))?
5152
}
52-
}
53+
},
5354
("auth", lit, span) => {
5455
if let Lit::Bool(b) = lit {
5556
auth = Some(b.value())
@@ -59,7 +60,7 @@ impl TryFrom<AttributeArgs> for OdooWebArgs {
5960
Some(*span),
6061
))?
6162
}
62-
}
63+
},
6364

6465
(key, _value, span) => Err((
6566
format!(

0 commit comments

Comments
 (0)