From 7d837c552b6c19074af85187d758f3e0c7616760 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 1 Nov 2024 05:05:41 +0200 Subject: [PATCH] update comments --- src/client/response/meta/mime.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/response/meta/mime.rs b/src/client/response/meta/mime.rs index 7448d81..979871e 100644 --- a/src/client/response/meta/mime.rs +++ b/src/client/response/meta/mime.rs @@ -50,7 +50,7 @@ impl Mime { } } - /// Create new `Self` from `std::Path` + /// Create new `Self` from `std::Path` that includes file **extension** pub fn from_path(path: &Path) -> Result { match path.extension().and_then(|extension| extension.to_str()) { // Text @@ -123,6 +123,7 @@ impl Mime { } /// Create new `Self` from [Uri](https://docs.gtk.org/glib/struct.Uri.html) + /// that includes file **extension** pub fn from_uri(uri: &Uri) -> Result { Self::from_path(Path::new(&uri.to_string())) }