mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-20 11:55:34 +00:00
build: upgrade tinymist-{derive,l10n,package,std}, typst-shim edition… (#1995)
… to 2024
This commit is contained in:
parent
46e7eca2b4
commit
920a318df4
18 changed files with 22 additions and 22 deletions
|
|
@ -5,7 +5,7 @@ description = "Additional functions wrapping Rust's standard library."
|
|||
version = "0.13.16"
|
||||
authors.workspace = true
|
||||
license.workspace = true
|
||||
edition.workspace = true
|
||||
edition = "2024"
|
||||
homepage.workspace = true
|
||||
repository.workspace = true
|
||||
|
||||
|
|
|
|||
|
|
@ -108,5 +108,5 @@ pub use well_known::*;
|
|||
/// The prelude of the Typst module.
|
||||
pub mod prelude {
|
||||
pub use comemo::Prehashed;
|
||||
pub use ecow::{eco_format, eco_vec, EcoString, EcoVec};
|
||||
pub use ecow::{EcoString, EcoVec, eco_format, eco_vec};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@ pub mod prelude {
|
|||
use crate::Error;
|
||||
|
||||
pub use super::{IgnoreLogging, WithContext, WithContextUntyped};
|
||||
pub use crate::{bail, Result};
|
||||
pub use crate::{Result, bail};
|
||||
|
||||
pub fn map_string_err<T: ToString>(loc: &'static str) -> impl Fn(T) -> Error {
|
||||
move |e| Error::new(loc, e.to_string().to_error_kind(), None)
|
||||
|
|
|
|||
|
|
@ -503,7 +503,7 @@ mod sys {
|
|||
use windows_sys::Win32::Foundation::HANDLE;
|
||||
use windows_sys::Win32::Foundation::{ERROR_INVALID_FUNCTION, ERROR_LOCK_VIOLATION};
|
||||
use windows_sys::Win32::Storage::FileSystem::{
|
||||
LockFileEx, UnlockFile, LOCKFILE_EXCLUSIVE_LOCK, LOCKFILE_FAIL_IMMEDIATELY,
|
||||
LOCKFILE_EXCLUSIVE_LOCK, LOCKFILE_FAIL_IMMEDIATELY, LockFileEx, UnlockFile,
|
||||
};
|
||||
|
||||
pub(super) fn lock_shared(file: &File) -> Result<()> {
|
||||
|
|
|
|||
|
|
@ -723,7 +723,7 @@ fn exclude_from_content_indexing(path: &Path) {
|
|||
use std::iter::once;
|
||||
use std::os::windows::prelude::OsStrExt;
|
||||
use windows_sys::Win32::Storage::FileSystem::{
|
||||
GetFileAttributesW, SetFileAttributesW, FILE_ATTRIBUTE_NOT_CONTENT_INDEXED,
|
||||
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED, GetFileAttributesW, SetFileAttributesW,
|
||||
};
|
||||
|
||||
let path: Vec<u16> = path.as_os_str().encode_wide().chain(once(0)).collect();
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ pub fn diff(path: &Path, base: &Path) -> Option<PathBuf> {
|
|||
mod test {
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use super::{clean as inner_path_clean, unix_slash, PathClean};
|
||||
use super::{PathClean, clean as inner_path_clean, unix_slash};
|
||||
|
||||
pub fn clean<P: AsRef<Path>>(path: P) -> String {
|
||||
unix_slash(&inner_path_clean(path))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue