mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 05:02:25 -05:00 
			
		
		
		
	[chore] bump dependencies (#4406)
- codeberg.org/gruf/go-ffmpreg: v0.6.9 -> v0.6.10
- github.com/ncruces/go-sqlite3: v0.27.1 -> v0.28.0
- github.com/stretchr/testify: v1.10.0 -> v1.11.1
- github.com/tdewolff/minify/v2 v2.23.11 -> v2.24.2
- go.opentelemetry.io/otel{,/*}: v1.37.0 -> v1.38.0
- go.opentelemetry.io/contrib/*: v0.62.0 -> v0.63.0
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4406
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
	
	
This commit is contained in:
		
					parent
					
						
							
								5a54e7156b
							
						
					
				
			
			
				commit
				
					
						78defcd916
					
				
			
		
					 274 changed files with 9213 additions and 2368 deletions
				
			
		
							
								
								
									
										33
									
								
								vendor/google.golang.org/protobuf/internal/filedesc/presence.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								vendor/google.golang.org/protobuf/internal/filedesc/presence.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,33 @@ | |||
| // Copyright 2025 The Go Authors. All rights reserved. | ||||
| // Use of this source code is governed by a BSD-style | ||||
| // license that can be found in the LICENSE file. | ||||
| 
 | ||||
| package filedesc | ||||
| 
 | ||||
| import "google.golang.org/protobuf/reflect/protoreflect" | ||||
| 
 | ||||
| // UsePresenceForField reports whether the presence bitmap should be used for | ||||
| // the specified field. | ||||
| func UsePresenceForField(fd protoreflect.FieldDescriptor) (usePresence, canBeLazy bool) { | ||||
| 	switch { | ||||
| 	case fd.ContainingOneof() != nil && !fd.ContainingOneof().IsSynthetic(): | ||||
| 		// Oneof fields never use the presence bitmap. | ||||
| 		// | ||||
| 		// Synthetic oneofs are an exception: Those are used to implement proto3 | ||||
| 		// optional fields and hence should follow non-oneof field semantics. | ||||
| 		return false, false | ||||
| 
 | ||||
| 	case fd.IsMap(): | ||||
| 		// Map-typed fields never use the presence bitmap. | ||||
| 		return false, false | ||||
| 
 | ||||
| 	case fd.Kind() == protoreflect.MessageKind || fd.Kind() == protoreflect.GroupKind: | ||||
| 		// Lazy fields always use the presence bitmap (only messages can be lazy). | ||||
| 		isLazy := fd.(interface{ IsLazy() bool }).IsLazy() | ||||
| 		return isLazy, isLazy | ||||
| 
 | ||||
| 	default: | ||||
| 		// If the field has presence, use the presence bitmap. | ||||
| 		return fd.HasPresence(), false | ||||
| 	} | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue