-
-
Notifications
You must be signed in to change notification settings - Fork 31
More functions that probably shouldn't return an Option #161
Comments
By https://gitlab.gnome.org/GNOME/glib/blob/master/gio/gfile.c#L6835 |
I think |
You right, for relative paths GLocalFile doing canonicalize. |
So anything that has to be done here? |
@sdroege it's probably more the question where to start? There is a lot of functions that don't need to return an Option. I don't know if it is really efficient if I am opening an issue for every singe function (#158, gtk-rs/gtk#709). |
Well, it needs someone to systematically go over all these functions and check what would be correct, and then make a PR with the changes :) If you don't plan to do that, just doing an issue for every (group of) functions you find that look wrong is fine too. The functions mentioned here seem to be correct though? Unlikely that they return |
Let's close this then. Please open new issues for everything you notice that shouldn't return an |
I don't think so. |
Checked again and you're right that these functions shouldn't return an |
See #221 |
gio::File::get_uri()
https://gitlab.gnome.org/GNOME/glib/blob/master/gio/gfile.c#L639gio::File::get_uri_scheme()
https://gitlab.gnome.org/GNOME/glib/blob/master/gio/gfile.c#L449and
If I am correct, there are probably many more functions, that shouldn't return an
Option
.The text was updated successfully, but these errors were encountered: