Skip to content

Commit db8ad1b

Browse files
committed
Created issues for TODO comments
1 parent 34102db commit db8ad1b

File tree

7 files changed

+8
-25
lines changed

7 files changed

+8
-25
lines changed

gdnative-core/src/core_types/geom/plane.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::core_types::{IsEqualApprox, Vector3};
22

3-
// TODO enforce invariants via setters, make fields private
3+
// TODO(#994) enforce invariants via setters, make fields private
44
// Otherwise almost all methods need to panic
55
// - normal.length() == 1
66
// - d > 0
@@ -322,7 +322,7 @@ mod test {
322322
assert!(!p.contains_point(Vector3::new(6.562291, -0.186564, -0.101982)));
323323
}
324324

325-
// TODO contains_point_eps()
325+
// TODO(#994) contains_point_eps()
326326

327327
#[test]
328328
fn intersect_3() {

gdnative-core/src/core_types/string.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ impl GodotString {
286286
sys_string.leak();
287287
this
288288
}
289-
290-
// TODO: many missing methods.
291289
}
292290

293291
impl Clone for GodotString {
@@ -454,7 +452,7 @@ impl Index<usize> for GodotString {
454452
}
455453
}
456454

457-
// TODO: Is it useful to expose this type?
455+
// TODO(#993): Is it useful to expose this type?
458456
// Could just make it an internal detail of how to convert to a rust string.
459457
#[doc(hidden)]
460458
pub struct Utf8String(pub(crate) sys::godot_char_string);

gdnative-core/src/core_types/variant_array.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -181,21 +181,6 @@ impl<Own: Ownership> VariantArray<Own> {
181181
self.into_iter()
182182
}
183183

184-
// TODO
185-
// pub fn sort_custom(&mut self, obj: ?, s: ?) {
186-
// unimplemented!()
187-
// }
188-
189-
// pub fn bsearch(&mut self, val: (), before: bool) -> i32 {
190-
// unsafe {
191-
// (get_api().godot_array_bsearch)(self.sys_mut(), val, before)
192-
// }
193-
// }
194-
195-
// pub fn bsearch_custom(&mut self, val: ?, obj: ?, s: ?, before: bool) -> i32 {
196-
// unimplemented!();
197-
// }
198-
199184
#[doc(hidden)]
200185
#[inline]
201186
pub fn sys(&self) -> *const sys::godot_array {

gdnative-core/src/export/class_builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::export::*;
77
use crate::object::NewRef;
88
use crate::private::get_api;
99

10-
// TODO unify string parameters across all buiders
10+
// TODO(#996): unify string parameters across all buiders
1111
// Potential candidates:
1212
// * &str
1313
// * impl Into<GodotString>

gdnative-core/src/export/property.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ where
114114
let default = self.default.to_variant();
115115

116116
let mut attr = sys::godot_property_attributes {
117-
rset_type: sys::godot_method_rpc_mode_GODOT_METHOD_RPC_MODE_DISABLED, // TODO:
117+
rset_type: sys::godot_method_rpc_mode_GODOT_METHOD_RPC_MODE_DISABLED, // TODO(#995)
118118
type_: variant_type as sys::godot_int,
119119
hint: hint_kind,
120120
hint_string: hint_string.to_sys(),

gdnative-core/src/object/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ pub struct Null<T>(PhantomData<T>);
10001000

10011001
impl<T: GodotObject> Null<T> {
10021002
/// Creates an explicit null reference that can be used as a method argument.
1003-
// TODO consider something more idiomatic, like module::null::<T>(), similar to std::ptr::null()
1003+
// TODO(#997) consider something more idiomatic, like module::null::<T>(), similar to std::ptr::null()
10041004
#[inline]
10051005
#[allow(clippy::self_named_constructors)]
10061006
pub fn null() -> Self {

test/src/test_serde.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ struct Foo {
4141
xform: Transform,
4242
color: Color,
4343
path: NodePath,
44-
// dict: Dictionary, //TODO: PartialEq
45-
// v_arr: VariantArray, //TODO: PartialEq
44+
// dict: Dictionary, //TODO(#990): PartialEq
45+
// v_arr: VariantArray, //TODO(#990): PartialEq
4646
byte_arr: ByteArray,
4747
int_arr: Int32Array,
4848
float_arr: Float32Array,

0 commit comments

Comments
 (0)