diff --git a/src/winsafe/gui/iterators.rs.html b/src/winsafe/gui/iterators.rs.html
index fd9b1ca97b..0df9206fff 100644
--- a/src/winsafe/gui/iterators.rs.html
+++ b/src/winsafe/gui/iterators.rs.html
@@ -464,7 +464,7 @@
owner,
count: owner.items().count(),
current: 0,
- buffer: WString::default(),
+ buffer: WString::new(),
}
}
}
@@ -590,7 +590,7 @@
owner,
count: owner.items().count(),
current: 0,
- buffer: WString::default(),
+ buffer: WString::new(),
}
}
}
@@ -654,7 +654,7 @@
} else {
match unsafe { owner.hwnd().SendMessage(lb::GetCurSel {}) } {
Some(index) => vec![index], None => Vec::<u32>::default(),
+ None => Vec::<u32>::new(),
}
};
@@ -662,7 +662,7 @@
owner,
indexes,
current: 0,
- buffer: WString::default(),
+ buffer: WString::new(),
}
}
}
diff --git a/src/winsafe/gui/native_controls/combo_box.rs.html b/src/winsafe/gui/native_controls/combo_box.rs.html
index 2368bf7dae..a4a1d3b08f 100644
--- a/src/winsafe/gui/native_controls/combo_box.rs.html
+++ b/src/winsafe/gui/native_controls/combo_box.rs.html
@@ -567,7 +567,7 @@
window_ex_style: co::WS_EX::LEFT,
ctrl_id: 0,
resize_behavior: (Horz::None, Vert::None),
- items: Vec::<String>::default(),
+ items: Vec::<String>::new(),
selected_item: None,
}
}
diff --git a/src/winsafe/gui/native_controls/list_box.rs.html b/src/winsafe/gui/native_controls/list_box.rs.html
index bd4091c56f..0b23361c20 100644
--- a/src/winsafe/gui/native_controls/list_box.rs.html
+++ b/src/winsafe/gui/native_controls/list_box.rs.html
@@ -500,7 +500,7 @@
window_ex_style: co::WS_EX::LEFT | co::WS_EX::CLIENTEDGE,
ctrl_id: 0,
resize_behavior: (Horz::None, Vert::None),
- items: Vec::<String>::default(),
+ items: Vec::<String>::new(),
}
}
}
diff --git a/src/winsafe/gui/native_controls/list_view.rs.html b/src/winsafe/gui/native_controls/list_view.rs.html
index d778217c10..d224366159 100644
--- a/src/winsafe/gui/native_controls/list_view.rs.html
+++ b/src/winsafe/gui/native_controls/list_view.rs.html
@@ -1034,7 +1034,7 @@
ctrl_id: 0,
resize_behavior: (Horz::None, Vert::None),
context_menu: None,
- columns: Vec::<(String, u32)>::default(),
+ columns: Vec::<(String, u32)>::new(),
}
}
}
diff --git a/src/winsafe/gui/windows/raw_control.rs.html b/src/winsafe/gui/windows/raw_control.rs.html
index 3df937a36d..a2445ee25d 100644
--- a/src/winsafe/gui/windows/raw_control.rs.html
+++ b/src/winsafe/gui/windows/raw_control.rs.html
@@ -256,7 +256,7 @@
let parent_hinst = self2.base().parent_hinstance()?;
let mut wcx = WNDCLASSEX::default();
- let mut class_name_buf = WString::default();
+ let mut class_name_buf = WString::new();
RawBase::fill_wndclassex(
&parent_hinst,
opts.class_style, &opts.class_icon, &opts.class_icon,
diff --git a/src/winsafe/gui/windows/raw_main.rs.html b/src/winsafe/gui/windows/raw_main.rs.html
index c0c2a2e9ba..d385d44b6d 100644
--- a/src/winsafe/gui/windows/raw_main.rs.html
+++ b/src/winsafe/gui/windows/raw_main.rs.html
@@ -285,7 +285,7 @@
let hinst = HINSTANCE::GetModuleHandle(None).unwrap();
let mut wcx = WNDCLASSEX::default();
- let mut class_name_buf = WString::default();
+ let mut class_name_buf = WString::new();
RawBase::fill_wndclassex(
&hinst,
opts.class_style, &opts.class_icon, &opts.class_icon,
diff --git a/src/winsafe/gui/windows/raw_modal.rs.html b/src/winsafe/gui/windows/raw_modal.rs.html
index 8ab0893ac6..578bf19983 100644
--- a/src/winsafe/gui/windows/raw_modal.rs.html
+++ b/src/winsafe/gui/windows/raw_modal.rs.html
@@ -289,7 +289,7 @@
let parent_hinst = self.base().parent_hinstance()?;
let mut wcx = WNDCLASSEX::default();
- let mut class_name_buf = WString::default();
+ let mut class_name_buf = WString::new();
RawBase::fill_wndclassex(
&parent_hinst,
opts.class_style, &opts.class_icon, &opts.class_icon,
diff --git a/src/winsafe/gui/windows/raw_modeless.rs.html b/src/winsafe/gui/windows/raw_modeless.rs.html
index e552949fb2..993b5937e0 100644
--- a/src/winsafe/gui/windows/raw_modeless.rs.html
+++ b/src/winsafe/gui/windows/raw_modeless.rs.html
@@ -219,7 +219,7 @@
let parent_hinst = self2.base().parent_hinstance()?;
let mut wcx = WNDCLASSEX::default();
- let mut class_name_buf = WString::default();
+ let mut class_name_buf = WString::new();
RawBase::fill_wndclassex(
&parent_hinst,
opts.class_style, &opts.class_icon, &opts.class_icon,
diff --git a/src/winsafe/gui/windows/window_message_only.rs.html b/src/winsafe/gui/windows/window_message_only.rs.html
index c0733f4f77..9cdff0933b 100644
--- a/src/winsafe/gui/windows/window_message_only.rs.html
+++ b/src/winsafe/gui/windows/window_message_only.rs.html
@@ -123,7 +123,7 @@
fn create(&self) {
let hinst = HINSTANCE::GetModuleHandle(None).unwrap();
let mut wcx = WNDCLASSEX::default();
- let mut class_name_buf = WString::default();
+ let mut class_name_buf = WString::new();
RawBase::fill_wndclassex(
&hinst,
co::CS::default(), &Icon::None, &Icon::None,
diff --git a/src/winsafe/kernel/funcs.rs.html b/src/winsafe/kernel/funcs.rs.html
index 0b7739915e..7bca6ed649 100644
--- a/src/winsafe/kernel/funcs.rs.html
+++ b/src/winsafe/kernel/funcs.rs.html
@@ -3712,11 +3712,11 @@
) -> SysResult<()>
{
let mut name_buf = match name {
- None => (WString::default(), 0),
+ None => (WString::new(), 0),
Some(_) => (WString::new_alloc_buf(MAX_PATH + 1), MAX_PATH + 1),
};
let mut sys_name_buf = match file_system_name {
- None => (WString::default(), 0),
+ None => (WString::new(), 0),
Some(_) => (WString::new_alloc_buf(MAX_PATH + 1), MAX_PATH + 1),
};
diff --git a/src/winsafe/kernel/handles/hkey.rs.html b/src/winsafe/kernel/handles/hkey.rs.html
index 9f84a5b553..a858ba61b8 100644
--- a/src/winsafe/kernel/handles/hkey.rs.html
+++ b/src/winsafe/kernel/handles/hkey.rs.html
@@ -2021,7 +2021,7 @@
data: RegistryValue,
) -> SysResult<()>
{
- let mut str_buf = WString::default();
+ let mut str_buf = WString::new();
let (data_ptr, data_len) = data.as_ptr_with_len(&mut str_buf);
error_to_sysresult(
@@ -2066,7 +2066,7 @@
data: RegistryValue,
) -> SysResult<()>
{
- let mut str_buf = WString::default();
+ let mut str_buf = WString::new();
let (data_ptr, data_len) = data.as_ptr_with_len(&mut str_buf);
error_to_sysresult(
diff --git a/src/winsafe/kernel/privs.rs.html b/src/winsafe/kernel/privs.rs.html
index f21796e151..2d1e6e9c79 100644
--- a/src/winsafe/kernel/privs.rs.html
+++ b/src/winsafe/kernel/privs.rs.html
@@ -264,7 +264,7 @@
#[must_use]
pub(crate) fn parse_multi_z_str(src: *const u16) -> Vec<String> {
let mut src = src;
- let mut strings = Vec::<String>::default();
+ let mut strings = Vec::<String>::new();
let mut i = 0;
loop {
diff --git a/src/winsafe/ole/com_interfaces/ipicture.rs.html b/src/winsafe/ole/com_interfaces/ipicture.rs.html
index 3253ca60e9..9393178c3d 100644
--- a/src/winsafe/ole/com_interfaces/ipicture.rs.html
+++ b/src/winsafe/ole/com_interfaces/ipicture.rs.html
@@ -250,7 +250,7 @@
/// use winsafe::{self as w, prelude::*};
///
/// let image_bytes: Vec<u8>; // initialized somewhere
- /// # let image_bytes = Vec::<u8>::default();
+ /// # let image_bytes = Vec::<u8>::new();
///
/// let stream = w::SHCreateMemStream(&image_bytes)?;
/// let ipic = w::OleLoadPicture(&stream, None, true)?;
diff --git a/src/winsafe/ole/com_interfaces/istream.rs.html b/src/winsafe/ole/com_interfaces/istream.rs.html
index 3ba2231471..f8bb8073c7 100644
--- a/src/winsafe/ole/com_interfaces/istream.rs.html
+++ b/src/winsafe/ole/com_interfaces/istream.rs.html
@@ -200,7 +200,7 @@
/// use winsafe::{self as w, prelude::*};
///
/// let raw_data: Vec<u8>; // initialized somewhere
- /// # let raw_data = Vec::<u8>::default();
+ /// # let raw_data = Vec::<u8>::new();
///
/// let stream = w::SHCreateMemStream(&raw_data)?;
/// # w::HrResult::Ok(())
diff --git a/src/winsafe/ole/structs.rs.html b/src/winsafe/ole/structs.rs.html
index 7e9eeb25ed..5c72bbcf6e 100644
--- a/src/winsafe/ole/structs.rs.html
+++ b/src/winsafe/ole/structs.rs.html
@@ -485,7 +485,7 @@
#[must_use]
pub fn to_strings(&self) -> Vec<String> {
- let mut vec = Vec::<String>::default();
+ let mut vec = Vec::<String>::new();
if !self.0.is_null() {
let mut idx_ptr = 0;
loop {
diff --git a/src/winsafe/shell/funcs.rs.html b/src/winsafe/shell/funcs.rs.html
index c4b2a7b4fc..da3dc729d7 100644
--- a/src/winsafe/shell/funcs.rs.html
+++ b/src/winsafe/shell/funcs.rs.html
@@ -681,7 +681,7 @@
/// use winsafe::{self as w, prelude::*};
///
/// let raw_data: Vec<u8>; // initialized somewhere
-/// # let raw_data = Vec::<u8>::default();
+/// # let raw_data = Vec::<u8>::new();
///
/// let stream = w::SHCreateMemStream(&raw_data)?;
/// # w::HrResult::Ok(())
diff --git a/src/winsafe/user/handles/hwnd.rs.html b/src/winsafe/user/handles/hwnd.rs.html
index e24b907a4e..3261c37588 100644
--- a/src/winsafe/user/handles/hwnd.rs.html
+++ b/src/winsafe/user/handles/hwnd.rs.html
@@ -2461,7 +2461,7 @@
{
let buf_sz = sz_item_text.unwrap_or(100) + 1;
let mut buf = match item {
- None => WString::default(),
+ None => WString::new(),
Some(_) => WString::new_alloc_buf(buf_sz as _), };